Commit 80c37f6a authored by marko@hundin.mysql.fi's avatar marko@hundin.mysql.fi

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

parent 6e79ece1
...@@ -2811,8 +2811,15 @@ loop: ...@@ -2811,8 +2811,15 @@ loop:
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