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
617d34ae
Commit
617d34ae
authored
May 27, 2019
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed wrong reset of join_cache_level in join_outer*test
parent
592dc59d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
26 deletions
+29
-26
mysql-test/main/join_outer.result
mysql-test/main/join_outer.result
+2
-1
mysql-test/main/join_outer.test
mysql-test/main/join_outer.test
+2
-1
mysql-test/main/join_outer_jcl6.result
mysql-test/main/join_outer_jcl6.result
+25
-24
No files found.
mysql-test/main/join_outer.result
View file @
617d34ae
...
...
@@ -2000,6 +2000,7 @@ INSERT INTO t2 VALUES
CREATE TABLE t3 ( a int, b int NOT NULL , PRIMARY KEY (b)) ;
INSERT INTO t3 VALUES
(0,6),(0,7),(0,8),(2,9),(0,10),(2,21),(0,22),(2,23),(2,24),(2,25);
set @save_join_cache_level= @@join_cache_level;
SET SESSION join_cache_level=4;
EXPLAIN EXTENDED
SELECT * FROM (t2 LEFT JOIN t1 ON t1.b = t2.b) JOIN t3 ON t1.b = t3.b;
...
...
@@ -2018,7 +2019,7 @@ EXECUTE stmt;
b b a b
10 10 0 10
DEALLOCATE PREPARE stmt;
SET SESSION join_cache_level=
default
;
SET SESSION join_cache_level=
@save_join_cache_level
;
DROP TABLE t1,t2,t3;
#
# LP bug #943543: LEFT JOIN converted to JOIN with
...
...
mysql-test/main/join_outer.test
View file @
617d34ae
...
...
@@ -1575,6 +1575,7 @@ CREATE TABLE t3 ( a int, b int NOT NULL , PRIMARY KEY (b)) ;
INSERT
INTO
t3
VALUES
(
0
,
6
),(
0
,
7
),(
0
,
8
),(
2
,
9
),(
0
,
10
),(
2
,
21
),(
0
,
22
),(
2
,
23
),(
2
,
24
),(
2
,
25
);
set
@
save_join_cache_level
=
@@
join_cache_level
;
SET
SESSION
join_cache_level
=
4
;
EXPLAIN
EXTENDED
...
...
@@ -1588,7 +1589,7 @@ EXECUTE stmt;
DEALLOCATE
PREPARE
stmt
;
SET
SESSION
join_cache_level
=
default
;
SET
SESSION
join_cache_level
=
@
save_join_cache_level
;
DROP
TABLE
t1
,
t2
,
t3
;
...
...
mysql-test/main/join_outer_jcl6.result
View file @
617d34ae
This diff is collapsed.
Click to expand it.
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