Commit d098c953 authored by unknown's avatar unknown

Fix for broken compile if not compiling with partitioning

parent 1e555b87
...@@ -5009,6 +5009,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name, ...@@ -5009,6 +5009,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
old_db_type= table->s->db_type; old_db_type= table->s->db_type;
if (!create_info->db_type) if (!create_info->db_type)
{ {
#ifdef WITH_PARTITION_STORAGE_ENGINE
if (table->part_info && if (table->part_info &&
create_info->used_fields & HA_CREATE_USED_ENGINE) create_info->used_fields & HA_CREATE_USED_ENGINE)
{ {
...@@ -5022,6 +5023,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name, ...@@ -5022,6 +5023,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
create_info->db_type= table->part_info->default_engine_type; create_info->db_type= table->part_info->default_engine_type;
} }
else else
#endif
create_info->db_type= old_db_type; create_info->db_type= old_db_type;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment