1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-11548 Reproducible server crash after the 2nd ALTER TABLE ADD FOREIGN KEY IF NOT EXISTS.

Have to use 'keyname' to check the name uniqueness.
This commit is contained in:
Alexey Botchkov
2017-01-09 23:37:42 +04:00
parent eed319b6fb
commit 171e59ed47
3 changed files with 35 additions and 1 deletions

View File

@ -5943,7 +5943,7 @@ drop_create_field:
while ((f_key= fk_key_it++))
{
if (my_strcasecmp(system_charset_info, f_key->foreign_id->str,
key->name.str) == 0)
keyname) == 0)
goto remove_key;
}
}