mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Changed a test case from join_cache.test to make it platform independent.
This commit is contained in:
@ -4400,17 +4400,12 @@ INSERT INTO t2 VALUES
|
||||
(1, 12, 102), (8, 81, 801), (7, 70, 700), (12, 120, 1200),
|
||||
(8, 82, 802), (1, 13, 103), (1, 14, 104), (3, 31, 301),
|
||||
(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_buffer_size = 192;
|
||||
EXPLAIN
|
||||
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
|
||||
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)
|
||||
SELECT t1.a, t2.c FROM t1,t2 WHERE t1.a=t2.a AND t2.b=99;
|
||||
a c
|
||||
|
@ -2581,11 +2581,6 @@ INSERT INTO t2 VALUES
|
||||
(1, 12, 102), (8, 81, 801), (7, 70, 700), (12, 120, 1200),
|
||||
(8, 82, 802), (1, 13, 103), (1, 14, 104), (3, 31, 301),
|
||||
(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_buffer_size = 192;
|
||||
|
Reference in New Issue
Block a user