Commit b4cd2d3c authored by Eugene Kosov's avatar Eugene Kosov

Tests: duplicate system versioning field

parent 99baeaa9
......@@ -353,5 +353,11 @@ create or replace table t1 (a int, id int) with system versioning engine INNODB_
create or replace table t2 (b int, id int);
create or replace table t3 as
select t2.b, t1.a, t1.sys_trx_start, t1.sys_trx_end from t2 inner join t1 on t2.id=t1.id;
create or replace table t (sys_trx_start int);
alter table t with system versioning;
ERROR 42S21: Duplicate column name 'sys_trx_start'
create or replace table t (sys_trx_end int);
alter table t with system versioning;
ERROR 42S21: Duplicate column name 'sys_trx_end'
drop database test;
create database test;
......@@ -283,5 +283,13 @@ create or replace table t2 (b int, id int);
create or replace table t3 as
select t2.b, t1.a, t1.sys_trx_start, t1.sys_trx_end from t2 inner join t1 on t2.id=t1.id;
create or replace table t (sys_trx_start int);
--error ER_DUP_FIELDNAME
alter table t with system versioning;
create or replace table t (sys_trx_end int);
--error ER_DUP_FIELDNAME
alter table t with system versioning;
drop database test;
create database test;
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