summaryrefslogtreecommitdiff
path: root/storage/innobase/include/db0err.h
diff options
context:
space:
mode:
authorJimmy Yang <jimmy.yang@oracle.com>2010-09-01 17:43:02 -0700
committerJimmy Yang <jimmy.yang@oracle.com>2010-09-01 17:43:02 -0700
commit9b3a3944e458c86b5273f2f1f375dd5fa30e92d5 (patch)
treead04841d793102b4fcea23fe98b677ff3d6cfbd5 /storage/innobase/include/db0err.h
parent5012ce8df30c4ee85923ab4c797cd623e86dc427 (diff)
parent8822ecff2dea2e83fdad84d7a9307e8aa5905bce (diff)
downloadmariadb-git-9b3a3944e458c86b5273f2f1f375dd5fa30e92d5.tar.gz
Merge from mysql-5.1-bugteam to mysql-5.1-security
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 af3e78fe833..bab6fa46370 100644
--- a/storage/innobase/include/db0err.h
+++ b/storage/innobase/include/db0err.h
@@ -76,6 +76,12 @@ Created 5/24/1996 Heikki Tuuri
#define DB_FOREIGN_EXCEED_MAX_CASCADE 50/* Foreign key constraint related
cascading delete/update exceeds
maximum allowed depth */
+#define DB_FOREIGN_NO_INDEX 51 /* the child (foreign) table does not
+ have an index that contains the
+ foreign keys as its prefix columns */
+#define DB_REFERENCING_NO_INDEX 52 /* 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