summaryrefslogtreecommitdiff
path: root/storage/innobase/dict/dict0dict.c
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/dict/dict0dict.c
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/dict/dict0dict.c')
-rw-r--r--storage/innobase/dict/dict0dict.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/dict/dict0dict.c b/storage/innobase/dict/dict0dict.c
index d2b59469cdc..9f9c4da46f4 100644
--- a/storage/innobase/dict/dict0dict.c
+++ b/storage/innobase/dict/dict0dict.c
@@ -2140,7 +2140,7 @@ dict_foreign_add_to_cache(
mem_heap_free(foreign->heap);
}
- return(DB_CANNOT_ADD_CONSTRAINT);
+ return(DB_FOREIGN_NO_INDEX);
}
for_in_cache->referenced_table = ref_table;
@@ -2184,7 +2184,7 @@ dict_foreign_add_to_cache(
mem_heap_free(foreign->heap);
}
- return(DB_CANNOT_ADD_CONSTRAINT);
+ return(DB_REFERENCING_NO_INDEX);
}
for_in_cache->foreign_table = for_table;