summaryrefslogtreecommitdiff
path: root/sql/sql_partition.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_partition.cc')
-rw-r--r--sql/sql_partition.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc
index 1ff2266f033..98b41f38fc6 100644
--- a/sql/sql_partition.cc
+++ b/sql/sql_partition.cc
@@ -5104,7 +5104,8 @@ that are reorganised.
if (is_name_in_list(part_elem->partition_name,
alter_info->partition_names))
{
- if (part_elem->type() == partition_element::AS_OF_NOW)
+ if (tab_part_info->part_type == VERSIONING_PARTITION &&
+ part_elem->type() == partition_element::AS_OF_NOW)
{
DBUG_ASSERT(table && table->s && table->s->table_name.str);
my_error(ER_VERS_WRONG_PARTS, MYF(0), table->s->table_name.str);