Commit d10a0e7e authored by mikael@zim.(none)'s avatar mikael@zim.(none)

Ensure we discover also error in using subpartition parts in

non-subpartitioned tables in ALTER TABLE ADD/REORGANIZE PARTITION
parent 8d3c7e3b
...@@ -4736,8 +4736,7 @@ the generated partition syntax in a correct manner. ...@@ -4736,8 +4736,7 @@ the generated partition syntax in a correct manner.
if (alter_info->flags == ALTER_ADD_PARTITION || if (alter_info->flags == ALTER_ADD_PARTITION ||
alter_info->flags == ALTER_REORGANIZE_PARTITION) alter_info->flags == ALTER_REORGANIZE_PARTITION)
{ {
if (tab_part_info->is_sub_partitioned() && if (tab_part_info->use_default_subpartitions &&
tab_part_info->use_default_subpartitions &&
!alt_part_info->use_default_subpartitions) !alt_part_info->use_default_subpartitions)
{ {
tab_part_info->use_default_subpartitions= FALSE; tab_part_info->use_default_subpartitions= FALSE;
......
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