Skip to content

Commit 5a08bd3

Browse files
kevgsmidenok
authored andcommitted
Tests: subqueries with JOINed tables with different FOR SYSTEM_TIME clauses [closes #154]
1 parent 7fd5490 commit 5a08bd3

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

mysql-test/suite/versioning/r/select.result

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,18 @@ update t1 set a=2;
444444
select @end;
445445
@end
446446
18446744073709551615
447+
create or replace table t1 (a int) with system versioning;
448+
create or replace table t2 (b int) with system versioning;
449+
insert into t1 values (1);
450+
insert into t2 values (2);
451+
select * from (select * from t1 cross join t2) as tmp;
452+
a b
453+
1 2
454+
select * from (select * from (select * from t1 cross join t2) as tmp1) as tmp2;
455+
a b
456+
1 2
457+
select * from (select * from t1 cross join t2 for system_time as of timestamp '0-0-0') as tmp;
458+
a b
447459
drop table t1, t2;
448460
call verify_vtq;
449461
No A B C D

mysql-test/suite/versioning/t/select.test

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ create trigger read_end after update on t1
167167
update t1 set a=2;
168168
select @end;
169169

170+
create or replace table t1 (a int) with system versioning;
171+
create or replace table t2 (b int) with system versioning;
172+
insert into t1 values (1);
173+
insert into t2 values (2);
174+
select * from (select * from t1 cross join t2) as tmp;
175+
select * from (select * from (select * from t1 cross join t2) as tmp1) as tmp2;
176+
select * from (select * from t1 cross join t2 for system_time as of timestamp '0-0-0') as tmp;
177+
170178
drop table t1, t2;
171179

172180
call verify_vtq;

0 commit comments

Comments
 (0)