Skip to content

Commit 69e5522

Browse files
committed
merge fixes: sql_table.cc and partition_info.cc (caused by ef4ccb6) done
1 parent 1efc199 commit 69e5522

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

sql/partition_info.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ void partition_info::vers_set_hist_part(THD *thd)
878878
return;
879879
warn:
880880
my_error(WARN_VERS_PART_FULL, MYF(ME_WARNING|ME_ERROR_LOG),
881-
table->s->db.str, table->s->error_table_name(),
881+
table->s->db.str, table->s->table_name.str,
882882
vers_info->hist_part->partition_name);
883883
}
884884

sql/sql_table.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8423,7 +8423,7 @@ mysql_prepare_alter_table(THD *thd, TABLE *table,
84238423
}
84248424
if (!drop)
84258425
{
8426-
if (alter_info->flags & Alter_info::ALTER_RENAME_COLUMN)
8426+
if (alter_info->flags & ALTER_RENAME_COLUMN)
84278427
{
84288428
check->expr->walk(&Item::rename_fields_processor, 1,
84298429
&column_rename_param);
@@ -9310,7 +9310,7 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
93109310

93119311
THD_STAGE_INFO(thd, stage_setup);
93129312

9313-
if (alter_info->flags & Alter_info::ALTER_DROP_CHECK_CONSTRAINT)
9313+
if (alter_info->flags & ALTER_DROP_CHECK_CONSTRAINT)
93149314
{
93159315
/*
93169316
ALTER TABLE DROP CONSTRAINT
@@ -9323,7 +9323,7 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
93239323
List <FOREIGN_KEY_INFO> fk_child_key_list;
93249324
table->file->get_foreign_key_list(thd, &fk_child_key_list);
93259325

9326-
alter_info->flags&= ~Alter_info::ALTER_DROP_CHECK_CONSTRAINT;
9326+
alter_info->flags&= ~ALTER_DROP_CHECK_CONSTRAINT;
93279327

93289328
while ((drop= drop_it++))
93299329
{
@@ -9340,7 +9340,7 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
93409340
drop->name) == 0)
93419341
{
93429342
drop->type= Alter_drop::FOREIGN_KEY;
9343-
alter_info->flags|= Alter_info::DROP_FOREIGN_KEY;
9343+
alter_info->flags|= ALTER_DROP_FOREIGN_KEY;
93449344
goto do_continue;
93459345
}
93469346
}
@@ -9354,16 +9354,16 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
93549354
{
93559355
if ((table->key_info[n_key].flags & HA_NOSAME) &&
93569356
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'
93589358
{
93599359
drop->type= Alter_drop::KEY;
9360-
alter_info->flags|= Alter_info::ALTER_DROP_INDEX;
9360+
alter_info->flags|= ALTER_DROP_INDEX;
93619361
goto do_continue;
93629362
}
93639363
}
93649364
}
93659365
}
9366-
alter_info->flags|= Alter_info::ALTER_DROP_CHECK_CONSTRAINT;
9366+
alter_info->flags|= ALTER_DROP_CHECK_CONSTRAINT;
93679367
do_continue:;
93689368
}
93699369
}

0 commit comments

Comments
 (0)