1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

MDEV-12395: DROP PARTITION does not work as expected when table has DEFAULT LIST partition

Data loss in case of partituon removing is documented => do not try to prevent it
This commit is contained in:
Oleksandr Byelkin
2017-04-04 14:47:58 +02:00
parent 27f6b11a97
commit d9484a2f60
3 changed files with 67 additions and 16 deletions

View File

@@ -4842,8 +4842,7 @@ uint prep_alter_part_table(THD *thd, TABLE *table, Alter_info *alter_info,
my_error(ER_PARTITION_FUNCTION_FAILURE, MYF(0));
goto err;
}
if ((flags & (HA_FAST_CHANGE_PARTITION | HA_PARTITION_ONE_PHASE)) != 0 &&
!tab_part_info->has_default_partititon())
if ((flags & (HA_FAST_CHANGE_PARTITION | HA_PARTITION_ONE_PHASE)) != 0)
{
/*
"Fast" change of partitioning is supported in this case.