mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
clarify ER_CANT_DROP_FIELD_OR_KEY
include the dropped object type
This commit is contained in:
@ -272,6 +272,12 @@ public:
|
||||
*/
|
||||
Alter_drop *clone(MEM_ROOT *mem_root) const
|
||||
{ return new (mem_root) Alter_drop(*this); }
|
||||
const char *type_name()
|
||||
{
|
||||
return type == COLUMN ? "COLUMN" :
|
||||
type == CHECK_CONSTRAINT ? "CONSTRAINT" :
|
||||
type == KEY ? "INDEX" : "FOREIGN KEY";
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user