diff --git a/innobase/dict/dict0dict.c b/innobase/dict/dict0dict.c index 56bdf83aa4d97bdade15dc6db8e51afb7fe33ffb..657ce2d6809716f3d902a4bbb25fbbb9a6eb8a42 100644 --- a/innobase/dict/dict0dict.c +++ b/innobase/dict/dict0dict.c @@ -1983,7 +1983,7 @@ loop: ptr = dict_accept(ptr, "FOREIGN", &success); if (!isspace(*ptr)) { - return(DB_CANNOT_ADD_CONSTRAINT); + goto loop; } ptr = dict_accept(ptr, "KEY", &success);