Skip to content

Commit 675ca12

Browse files
committed
Follow-up for MDEV-6066 (new defaults from 5.6 and 5.7)
New defaults for query cache caused wrong test output
1 parent 1a36caf commit 675ca12

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

mysql-test/suite/storage_engine/select.result

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ a
6868
SELECT FOUND_ROWS();
6969
FOUND_ROWS()
7070
3
71-
SET GLOBAL query_cache_size = 1024*1024;
71+
SET GLOBAL query_cache_type = ON;
72+
SET query_cache_type = ON;
7273
SELECT SQL_CACHE * FROM t1, t2;
7374
a b a b
7475
1 z 1 z
@@ -89,7 +90,7 @@ a b a b
8990
200 bar 100 foobar
9091
200 bar 200 bar
9192
200 bar 200 bar
92-
SET GLOBAL query_cache_size = 0;
93+
SET GLOBAL query_cache_type = DEFAULT;
9394
SELECT a+10 AS field1, CONCAT(b,':',b) AS field2 FROM t1
9495
WHERE b > 'b' AND a IS NOT NULL
9596
GROUP BY 2 DESC, field1 ASC

mysql-test/suite/storage_engine/select.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ SELECT SQL_BIG_RESULT SQL_CALC_FOUND_ROWS DISTINCT(t2.a)
4545
FROM t1 t1_1, t2, t1 t1_2;
4646
SELECT FOUND_ROWS();
4747

48-
let $query_cache = `SELECT @@query_cache_size`;
49-
SET GLOBAL query_cache_size = 1024*1024;
48+
SET GLOBAL query_cache_type = ON;
49+
SET query_cache_type = ON;
5050
--sorted_result
5151
SELECT SQL_CACHE * FROM t1, t2;
52-
eval SET GLOBAL query_cache_size = $query_cache;
52+
SET GLOBAL query_cache_type = DEFAULT;
5353

5454
# Combination of main clauses
5555

0 commit comments

Comments
 (0)