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
4cd3376d
Commit
4cd3376d
authored
Dec 25, 2011
by
Igor Babaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed a test case from join_cache.test to make it platform independent.
parent
1333c9b2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
11 deletions
+1
-11
mysql-test/r/join_cache.result
mysql-test/r/join_cache.result
+1
-6
mysql-test/t/join_cache.test
mysql-test/t/join_cache.test
+0
-5
No files found.
mysql-test/r/join_cache.result
View file @
4cd3376d
...
@@ -4400,17 +4400,12 @@ INSERT INTO t2 VALUES
...
@@ -4400,17 +4400,12 @@ INSERT INTO t2 VALUES
(1, 12, 102), (8, 81, 801), (7, 70, 700), (12, 120, 1200),
(1, 12, 102), (8, 81, 801), (7, 70, 700), (12, 120, 1200),
(8, 82, 802), (1, 13, 103), (1, 14, 104), (3, 31, 301),
(8, 82, 802), (1, 13, 103), (1, 14, 104), (3, 31, 301),
(1, 15, 105), (8, 83, 803), (7, 71, 701);
(1, 15, 105), (8, 83, 803), (7, 71, 701);
INSERT INTO t2 VALUES
(108, 80, 800), (101, 10, 100), (101, 11, 101), (103, 30, 300),
(101, 12, 102), (108, 81, 801), (107, 70, 700), (1012, 120, 1200),
(108, 82, 802), (101, 13, 103), (101, 14, 104), (103, 31, 301),
(101, 15, 105), (108, 83, 803), (107, 71, 701);
SET SESSION join_cache_level = 4;
SET SESSION join_cache_level = 4;
SET SESSION join_buffer_size = 192;
SET SESSION join_buffer_size = 192;
EXPLAIN
EXPLAIN
SELECT t1.a, t2.c FROM t1,t2 WHERE t1.a=t2.a AND t2.b=99;
SELECT t1.a, t2.c FROM t1,t2 WHERE t1.a=t2.a AND t2.b=99;
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t2 ALL idx NULL NULL NULL
30
Using where
1 SIMPLE t2 ALL idx NULL NULL NULL
15
Using where
1 SIMPLE t1 hash_ALL NULL #hash#$hj 5 test.t2.a 36 Using where; Using join buffer (flat, BNLH join)
1 SIMPLE t1 hash_ALL NULL #hash#$hj 5 test.t2.a 36 Using where; Using join buffer (flat, BNLH join)
SELECT t1.a, t2.c FROM t1,t2 WHERE t1.a=t2.a AND t2.b=99;
SELECT t1.a, t2.c FROM t1,t2 WHERE t1.a=t2.a AND t2.b=99;
a c
a c
...
...
mysql-test/t/join_cache.test
View file @
4cd3376d
...
@@ -2581,11 +2581,6 @@ INSERT INTO t2 VALUES
...
@@ -2581,11 +2581,6 @@ INSERT INTO t2 VALUES
(
1
,
12
,
102
),
(
8
,
81
,
801
),
(
7
,
70
,
700
),
(
12
,
120
,
1200
),
(
1
,
12
,
102
),
(
8
,
81
,
801
),
(
7
,
70
,
700
),
(
12
,
120
,
1200
),
(
8
,
82
,
802
),
(
1
,
13
,
103
),
(
1
,
14
,
104
),
(
3
,
31
,
301
),
(
8
,
82
,
802
),
(
1
,
13
,
103
),
(
1
,
14
,
104
),
(
3
,
31
,
301
),
(
1
,
15
,
105
),
(
8
,
83
,
803
),
(
7
,
71
,
701
);
(
1
,
15
,
105
),
(
8
,
83
,
803
),
(
7
,
71
,
701
);
INSERT
INTO
t2
VALUES
(
108
,
80
,
800
),
(
101
,
10
,
100
),
(
101
,
11
,
101
),
(
103
,
30
,
300
),
(
101
,
12
,
102
),
(
108
,
81
,
801
),
(
107
,
70
,
700
),
(
1012
,
120
,
1200
),
(
108
,
82
,
802
),
(
101
,
13
,
103
),
(
101
,
14
,
104
),
(
103
,
31
,
301
),
(
101
,
15
,
105
),
(
108
,
83
,
803
),
(
107
,
71
,
701
);
SET
SESSION
join_cache_level
=
4
;
SET
SESSION
join_cache_level
=
4
;
SET
SESSION
join_buffer_size
=
192
;
SET
SESSION
join_buffer_size
=
192
;
...
...
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