1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00

SQL: NATURAL LEFT JOIN for versioned tables [fixes #156]

This commit is contained in:
kevg
2017-03-15 16:32:44 +03:00
committed by Aleksey Midenkov
parent 5a08bd3515
commit fb0b3e5902
3 changed files with 23 additions and 4 deletions

View File

@@ -456,6 +456,16 @@ 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
create or replace table t1(a1 int) with system versioning;
create or replace table t2(a2 int) with system versioning;
insert into t1 values(1),(2);
insert into t2 values(1),(2);
select * from t1 for system_time all natural left join t2 for system_time all;
a1 a2
1 1
2 1
1 2
2 2
drop table t1, t2;
call verify_vtq;
No A B C D