mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 16:44:29 +02:00
clarify ER_CANT_DROP_FIELD_OR_KEY
include the dropped object type
This commit is contained in:
parent
5e3a1ea1e4
commit
5c764a0eb8
17 changed files with 54 additions and 56 deletions
|
|
@ -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";
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue