summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2017-04-04 14:47:58 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2017-04-07 18:26:55 +0200
commitd9484a2f60c488c63e6f9e6cacc06066cf0118be (patch)
tree4510a5f2c00992bdaa259b0444c9ebfe68fc9455 /sql
parent27f6b11a97c8c95cb6d4e282e101c484c8acf281 (diff)
downloadmariadb-git-d9484a2f60c488c63e6f9e6cacc06066cf0118be.tar.gz
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
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_partition.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc
index 4e71e792a08..0a146aeb12b 100644
--- a/sql/sql_partition.cc
+++ b/sql/sql_partition.cc
@@ -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.