Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
5a08bd35
Commit
5a08bd35
authored
Mar 14, 2017
by
kevg
Committed by
Aleksey Midenkov
May 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: subqueries with JOINed tables with different FOR SYSTEM_TIME clauses [closes #154]
parent
7fd54909
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
mysql-test/suite/versioning/r/select.result
mysql-test/suite/versioning/r/select.result
+12
-0
mysql-test/suite/versioning/t/select.test
mysql-test/suite/versioning/t/select.test
+8
-0
No files found.
mysql-test/suite/versioning/r/select.result
View file @
5a08bd35
...
...
@@ -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
...
...
mysql-test/suite/versioning/t/select.test
View file @
5a08bd35
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment