Skip to content
#

mariadb

Here are 1,689 public repositories matching this topic...

prisma
petrduda
petrduda commented Nov 23, 2020

Describe the bug

When dropping all remaining routines/events/triggers, the resulting empty list is not replaced accordingly.

To Reproduce

Steps to reproduce the behavior:

  1. Select a database, create a few stored procedures (or events, or triggers, respectively), e.g.:
CREATE FUNCTION `test1`() RETURNS INT(1) NOT DETERMINISTIC NO SQL SQL SECURITY DEFINER RETURN 1; 
CREATE 
abonander
abonander commented Nov 16, 2020

In my experience, far and away the primary reason to use DatabaseError::downcast_ref() is to check the constraint name. It would be nice not to have to downcast, though:

https://github.com/launchbadge/sqlx/blob/master/sqlx-core/src/error.rs#L146

 pub trait DatabaseError: ... {
    // existing methods omitted

    /// Returns the name of the constraint that triggered the error, if
boris-turk
boris-turk commented Oct 25, 2020

Hi,

is it possible to define enum mappings WITHOUT using attributes, maybe with some kind of fluent API? The only possibility I see right now is to use the MapValue attribute:

public enum Gender
{
	[MapValue("M")] Male,
	[MapValue("F")] Female,
	[MapValue("U")] Unknown,
	[MapValue("O")] Other,
}

But I don't like this approach (see my longer explanation below). Thank you in

VPSToolBox is a bash script that helps you setup Trojan-gfw Nginx Hexo Netdata and other powerful applications on a Linux server really quickly(超级Linux VPS脚本工具箱,一键安装Trojan-GFW代理,Hexo博客,RSS,邮件,Qbittorrent,Aria2,Netdata等應用程式。).

  • Updated Nov 25, 2020
  • Shell

Improve this page

Add a description, image, and links to the mariadb topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the mariadb topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.