mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Fix Bug #16290 Unclear error message when adding foreign key constraint
rb://502 approved by Sunny Bains
This commit is contained in:
parent
a8266151de
commit
f64026427e
4 changed files with 37 additions and 2 deletions
|
|
@ -104,6 +104,12 @@ enum db_err {
|
|||
DB_FOREIGN_EXCEED_MAX_CASCADE, /* Foreign key constraint related
|
||||
cascading delete/update exceeds
|
||||
maximum allowed depth */
|
||||
DB_CHILD_NO_INDEX, /* the child (foreign) table does not
|
||||
have an index that contains the
|
||||
foreign keys as its prefix columns */
|
||||
DB_PARENT_NO_INDEX, /* the parent table does not
|
||||
have an index that contains the
|
||||
foreign keys as its prefix columns */
|
||||
|
||||
/* The following are partial failure codes */
|
||||
DB_FAIL = 1000,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue