diff options
author | Jimmy Yang <jimmy.yang@oracle.com> | 2010-08-06 02:49:22 -0700 |
---|---|---|
committer | Jimmy Yang <jimmy.yang@oracle.com> | 2010-08-06 02:49:22 -0700 |
commit | 531c0eee52bf96ffc3f10ed408ce1fb143b9fd0a (patch) | |
tree | a3e7c3cecabdcaa593f6ca23647f862cab37417b /storage/innobase/dict/dict0dict.c | |
parent | 0812058d023a5261d40b31e8427669b5b5e8db20 (diff) | |
download | mariadb-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.c | 4 |
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; |