Commit 7945ea24 authored by unknown's avatar unknown

InnoDB: parse CONSTRAINT FOREIGN KEY correctly (Bug #3332)


innobase/dict/dict0dict.c:
  dict_create_foreign_constraints_low(): parse CONSTRAINT FOREIGN KEY correctly
parent 3e15849b
...@@ -2811,8 +2811,15 @@ dict_create_foreign_constraints_low( ...@@ -2811,8 +2811,15 @@ dict_create_foreign_constraints_low(
goto loop; goto loop;
} }
ptr = dict_scan_id(ptr, &constraint_name, &constraint_name_len, do {
FALSE); ptr++;
} while (isspace(*ptr));
/* read constraint name unless got "CONSTRAINT FOREIGN" */
if (ptr != ptr2) {
ptr = dict_scan_id(ptr, &constraint_name,
&constraint_name_len, FALSE);
}
} else { } else {
ptr = ptr2; ptr = ptr2;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment