@@ -8423,7 +8423,7 @@ mysql_prepare_alter_table(THD *thd, TABLE *table,
8423
8423
}
8424
8424
if (!drop)
8425
8425
{
8426
- if (alter_info->flags & Alter_info:: ALTER_RENAME_COLUMN)
8426
+ if (alter_info->flags & ALTER_RENAME_COLUMN)
8427
8427
{
8428
8428
check->expr ->walk (&Item::rename_fields_processor, 1 ,
8429
8429
&column_rename_param);
@@ -9310,7 +9310,7 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
9310
9310
9311
9311
THD_STAGE_INFO (thd, stage_setup);
9312
9312
9313
- if (alter_info->flags & Alter_info:: ALTER_DROP_CHECK_CONSTRAINT)
9313
+ if (alter_info->flags & ALTER_DROP_CHECK_CONSTRAINT)
9314
9314
{
9315
9315
/*
9316
9316
ALTER TABLE DROP CONSTRAINT
@@ -9323,7 +9323,7 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
9323
9323
List <FOREIGN_KEY_INFO> fk_child_key_list;
9324
9324
table->file ->get_foreign_key_list (thd, &fk_child_key_list);
9325
9325
9326
- alter_info->flags &= ~Alter_info:: ALTER_DROP_CHECK_CONSTRAINT;
9326
+ alter_info->flags &= ~ALTER_DROP_CHECK_CONSTRAINT;
9327
9327
9328
9328
while ((drop= drop_it++))
9329
9329
{
@@ -9340,7 +9340,7 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
9340
9340
drop->name ) == 0 )
9341
9341
{
9342
9342
drop->type = Alter_drop::FOREIGN_KEY;
9343
- alter_info->flags |= Alter_info::DROP_FOREIGN_KEY ;
9343
+ alter_info->flags |= ALTER_DROP_FOREIGN_KEY ;
9344
9344
goto do_continue;
9345
9345
}
9346
9346
}
@@ -9354,16 +9354,16 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
9354
9354
{
9355
9355
if ((table->key_info [n_key].flags & HA_NOSAME) &&
9356
9356
my_strcasecmp (system_charset_info,
9357
- drop->name , table->key_info [n_key].name ) == 0 )
9357
+ drop->name , table->key_info [n_key].name . str ) == 0 ) // Merge todo: review '.str'
9358
9358
{
9359
9359
drop->type = Alter_drop::KEY;
9360
- alter_info->flags |= Alter_info:: ALTER_DROP_INDEX;
9360
+ alter_info->flags |= ALTER_DROP_INDEX;
9361
9361
goto do_continue;
9362
9362
}
9363
9363
}
9364
9364
}
9365
9365
}
9366
- alter_info->flags |= Alter_info:: ALTER_DROP_CHECK_CONSTRAINT;
9366
+ alter_info->flags |= ALTER_DROP_CHECK_CONSTRAINT;
9367
9367
do_continue:;
9368
9368
}
9369
9369
}
0 commit comments