fix the fix and update test results for MDEV-4439

This commit is contained in:
Sergei Golubchik 2014-02-06 16:27:23 +01:00
commit 37b8691cec
4 changed files with 49 additions and 11 deletions

View file

@ -5476,7 +5476,7 @@ handle_if_exists_options(THD *thd, TABLE *table, Alter_info *alter_info)
if (remove_key)
{
push_warning_printf(thd, Sql_condition::WARN_LEVEL_NOTE,
ER_DUP_KEYNAME, ER(ER_DUP_KEYNAME), key->name.str);
ER_DUP_KEYNAME, ER(ER_DUP_KEYNAME), keyname);
key_it.remove();
if (key->type == Key::FOREIGN_KEY)
{