Fix Bug #16290 Unclear error message when adding foreign key constraint

rb://502 approved by Sunny Bains
This commit is contained in:
Jimmy Yang 2010-11-14 23:08:04 -08:00
commit f64026427e
4 changed files with 37 additions and 2 deletions

View file

@ -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,