1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

SQL, Test: main suite [fixes #300]

This commit is contained in:
Aleksey Midenkov
2017-10-26 18:14:54 +03:00
parent 73f655d576
commit 1d9d351346
6 changed files with 31 additions and 11 deletions

View File

@ -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);