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 @@ dict_create_foreign_constraints_low(
goto loop;
}
ptr = dict_scan_id(ptr, &constraint_name, &constraint_name_len,
FALSE);
do {
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 {
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