summaryrefslogtreecommitdiff
path: root/storage/innobase/include/db0err.h
diff options
context:
space:
mode:
authorJimmy Yang <jimmy.yang@oracle.com>2010-08-06 02:49:22 -0700
committerJimmy Yang <jimmy.yang@oracle.com>2010-08-06 02:49:22 -0700
commit531c0eee52bf96ffc3f10ed408ce1fb143b9fd0a (patch)
treea3e7c3cecabdcaa593f6ca23647f862cab37417b /storage/innobase/include/db0err.h
parent0812058d023a5261d40b31e8427669b5b5e8db20 (diff)
downloadmariadb-git-531c0eee52bf96ffc3f10ed408ce1fb143b9fd0a.tar.gz
Address bug #55465 ERROR 1280 (42000): Incorrect index name '<index name>',
adding a couple FK related messages. rb://409 approved by Sunny Bains
Diffstat (limited to 'storage/innobase/include/db0err.h')
-rw-r--r--storage/innobase/include/db0err.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/innobase/include/db0err.h b/storage/innobase/include/db0err.h
index 2be6005622d..cc6b0745b97 100644
--- a/storage/innobase/include/db0err.h
+++ b/storage/innobase/include/db0err.h
@@ -73,6 +73,12 @@ Created 5/24/1996 Heikki Tuuri
a later version of the engine. */
#define DB_INTERRUPTED 49 /* the query has been interrupted with
"KILL QUERY N;" */
+#define DB_FOREIGN_NO_INDEX 50 /* the child (foreign) table does not
+ have an index that contains the
+ foreign keys as its prefix columns */
+#define DB_REFERENCING_NO_INDEX 51 /* the parent (referencing) table does
+ not have an index that contains the
+ foreign keys as its prefix columns */
/* The following are partial failure codes */
#define DB_FAIL 1000