1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-15190 Bad error for non-versioned table PARTITION BY SYSTEM_TIME

This commit is contained in:
Sergei Golubchik
2018-02-21 18:14:04 +01:00
parent edeeaac451
commit dfb6f96eaf
4 changed files with 12 additions and 5 deletions

View File

@ -4641,6 +4641,12 @@ handler *mysql_create_frm_image(THD *thd,
goto err;
part_info->default_engine_type= engine_type;
if (part_info->vers_info && !create_info->versioned())
{
my_error(ER_VERS_NOT_VERSIONED, MYF(0), table_name->str);
goto err;
}
/*
We reverse the partitioning parser and generate a standard format
for syntax stored in frm file.