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

MDEV-4436 CHANGE COLUMN IF EXISTS does not work and throws wrong warning.

Use sql_field->change parameter as the name of the field.
This commit is contained in:
Alexey Botchkov
2013-11-11 19:45:55 +04:00
parent 3cf7e283a6
commit 06a91b18d7
3 changed files with 17 additions and 1 deletions

View File

@ -5309,7 +5309,7 @@ handle_if_exists_options(THD *thd, TABLE *table, Alter_info *alter_info)
for (f_ptr=table->field; *f_ptr; f_ptr++)
{
if (my_strcasecmp(system_charset_info,
sql_field->field_name, (*f_ptr)->field_name) == 0)
sql_field->change, (*f_ptr)->field_name) == 0)
{
break;
}