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

SQL: derived fixes [related to #185]

This commit is contained in:
Aleksey Midenkov
2017-04-30 23:51:42 +03:00
parent 8a11f9b243
commit 7e0ff13d7a
5 changed files with 21 additions and 9 deletions

View File

@@ -47,7 +47,7 @@ as
ancestors as a
where e.mgr = a.emp_id
)
select * from ancestors;
select * from ancestors for system_time as of now;
/* Expected 3 rows */
with recursive
@@ -63,7 +63,7 @@ as
ancestors as a
where e.mgr = a.emp_id
)
select * from ancestors for system_time as of timestamp @ts_2;
select * from ancestors;
drop table emp;
drop table dept;