mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Ensure we discover also error in using subpartition parts in
non-subpartitioned tables in ALTER TABLE ADD/REORGANIZE PARTITION
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user