mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fixed vargrind problems in check_join_cache_usage().
Merged the patch for bug 697557. Adjusted the results.
This commit is contained in:
@ -2931,6 +2931,28 @@ SET SESSION join_cache_level = DEFAULT;
|
||||
|
||||
DROP TABLE t1,t2;
|
||||
|
||||
--echo #
|
||||
--echo # Bug #697557: hash join on a varchar field
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 ( f1 varchar(10) , f2 int(11) , KEY (f1));
|
||||
INSERT INTO t1 VALUES ('r',1), ('m',2);
|
||||
|
||||
CREATE TABLE t2 ( f1 varchar(10) , f2 int(11) , KEY (f1));
|
||||
INSERT INTO t2 VALUES
|
||||
('hgtofubn',1), ('GDOXZ',91), ('n',2), ('fggxgalh',88),
|
||||
('hgtofu',1), ('GDO',101), ('n',3), ('fggxga',55),
|
||||
('hgtofu',3), ('GDO',33), ('nn',3), ('fggxgarrr',77);
|
||||
|
||||
SET SESSION join_cache_level=3;
|
||||
|
||||
EXPLAIN
|
||||
SELECT * FROM t1,t2 WHERE t2.f1 = t1.f1;
|
||||
SELECT * FROM t1,t2 WHERE t2.f1 = t1.f1;
|
||||
|
||||
SET SESSION join_cache_level = DEFAULT;
|
||||
|
||||
DROP TABLE t1,t2;
|
||||
|
||||
# this must be the last command in the file
|
||||
set @@optimizer_switch=@save_optimizer_switch;
|
||||
|
Reference in New Issue
Block a user