Commit eab47126 authored by Aleksey Midenkov's avatar Aleksey Midenkov

Paritioning: better error for disabled IB engine

parent 8e8363bb
...@@ -31,7 +31,7 @@ create or replace table t1 (x int) ...@@ -31,7 +31,7 @@ create or replace table t1 (x int)
partition by system_time ( partition by system_time (
partition p0 versioning, partition p0 versioning,
partition pn as of current_timestamp); partition pn as of current_timestamp);
ERROR HY000: System Versioning required: t1 ERROR HY000: Engine does not support System Versioning for `t1`
create or replace table t1 (x int); create or replace table t1 (x int);
alter table t1 alter table t1
partition by system_time ( partition by system_time (
......
...@@ -22,14 +22,14 @@ select * from t1 partition (p1) for system_time all; ...@@ -22,14 +22,14 @@ select * from t1 partition (p1) for system_time all;
### check server-level partitioning ### check server-level partitioning
# create errors # create errors
--error ER_VERSIONING_REQUIRED --error ER_VERS_ENGINE_UNSUPPORTED
create or replace table t1 (x int) create or replace table t1 (x int)
partition by system_time ( partition by system_time (
partition p0 versioning, partition p0 versioning,
partition pn as of current_timestamp); partition pn as of current_timestamp);
create or replace table t1 (x int); create or replace table t1 (x int);
--error ER_VERSIONING_REQUIRED,ER_VERSIONING_REQUIRED --error ER_VERS_ENGINE_UNSUPPORTED,ER_VERS_ENGINE_UNSUPPORTED
alter table t1 alter table t1
partition by system_time ( partition by system_time (
partition p0 versioning, partition p0 versioning,
......
...@@ -953,7 +953,7 @@ bool partition_info::vers_setup_expression(THD * thd, uint32 alter_add) ...@@ -953,7 +953,7 @@ bool partition_info::vers_setup_expression(THD * thd, uint32 alter_add)
if (!table->versioned_by_sql()) if (!table->versioned_by_sql())
{ {
my_error(ER_VERSIONING_REQUIRED, MYF(0), table->s->table_name.str); my_error(ER_VERS_ENGINE_UNSUPPORTED, MYF(0), table->s->table_name.str);
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment