Commit 5a08bd35 authored by kevg's avatar kevg Committed by Aleksey Midenkov

Tests: subqueries with JOINed tables with different FOR SYSTEM_TIME clauses [closes #154]

parent 7fd54909
......@@ -444,6 +444,18 @@ update t1 set a=2;
select @end;
@end
18446744073709551615
create or replace table t1 (a int) with system versioning;
create or replace table t2 (b int) with system versioning;
insert into t1 values (1);
insert into t2 values (2);
select * from (select * from t1 cross join t2) as tmp;
a b
1 2
select * from (select * from (select * from t1 cross join t2) as tmp1) as tmp2;
a b
1 2
select * from (select * from t1 cross join t2 for system_time as of timestamp '0-0-0') as tmp;
a b
drop table t1, t2;
call verify_vtq;
No A B C D
......
......@@ -167,6 +167,14 @@ create trigger read_end after update on t1
update t1 set a=2;
select @end;
create or replace table t1 (a int) with system versioning;
create or replace table t2 (b int) with system versioning;
insert into t1 values (1);
insert into t2 values (2);
select * from (select * from t1 cross join t2) as tmp;
select * from (select * from (select * from t1 cross join t2) as tmp1) as tmp2;
select * from (select * from t1 cross join t2 for system_time as of timestamp '0-0-0') as tmp;
drop table t1, t2;
call verify_vtq;
......
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