summaryrefslogtreecommitdiff
path: root/mysql-test/t/join_cache.test
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2011-07-08 18:46:47 +0400
committerSergey Petrunya <psergey@askmonty.org>2011-07-08 18:46:47 +0400
commit1492de8563ac6032481fe69189f4f1f1e14fe73b (patch)
tree297c4f43de79a2afc07279f9897965b8c7fd0ef9 /mysql-test/t/join_cache.test
parent4128ec48522534732d16a74cda006dc794748042 (diff)
downloadmariadb-git-1492de8563ac6032481fe69189f4f1f1e14fe73b.tar.gz
Set the default to be mrr=off,mrr_sort_keys=off:
- Set the default - Adjust the testcases so that 'new' tests are run with optimizations turned on. - Pull out relevant tests from "irrelevant" tests and run them with optimizations on. - Run range.test and innodb.test with both mrr=on and mrr=off
Diffstat (limited to 'mysql-test/t/join_cache.test')
-rw-r--r--mysql-test/t/join_cache.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/mysql-test/t/join_cache.test b/mysql-test/t/join_cache.test
index aac55dcb27b..9ccba27e4ee 100644
--- a/mysql-test/t/join_cache.test
+++ b/mysql-test/t/join_cache.test
@@ -7,7 +7,9 @@ set @save_optimizer_switch=@@optimizer_switch;
set optimizer_switch='semijoin=on,firstmatch=on,loosescan=on';
set @@optimizer_switch='semijoin_with_cache=on';
set @@optimizer_switch='outer_join_with_cache=on';
+set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
+set @local_join_cache_test_optimizer_switch_default=@@optimizer_switch;
set names utf8;
CREATE DATABASE world;
@@ -2981,7 +2983,7 @@ SELECT * FROM t1,t2
WHERE t1.f1 = t2.f4 AND (t1.f3 = 1 AND t2.f3 = 4 OR t1.f3 = 2 AND t2.f3 = 6);
SET SESSION join_cache_level = DEFAULT;
-SET SESSION optimizer_switch = DEFAULT;
+SET SESSION optimizer_switch = @local_join_cache_test_optimizer_switch_default;
DROP TABLE t1,t2;
@@ -3007,7 +3009,7 @@ EXPLAIN SELECT * FROM t1,t2
WHERE t2.f3 = t1.f2 AND t1.f1 IN (9, 0, 100) ORDER BY t1.f2 LIMIT 1;
SELECT * FROM t1,t2
WHERE t2.f3 = t1.f2 AND t1.f1 IN (9, 0 ,100) ORDER BY t1.f2 LIMIT 1;
-SET SESSION optimizer_switch = DEFAULT;
+SET SESSION optimizer_switch = @local_join_cache_test_optimizer_switch_default;
SET SESSION optimizer_switch = 'index_condition_pushdown=on';
EXPLAIN SELECT * FROM t1,t2
@@ -3015,7 +3017,7 @@ EXPLAIN SELECT * FROM t1,t2
SELECT * FROM t1,t2
WHERE t2.f3 = t1.f2 AND t1.f1 IN (9, 0 ,100) ORDER BY t1.f2 LIMIT 1;
-SET SESSION optimizer_switch = DEFAULT;
+SET SESSION optimizer_switch = @local_join_cache_test_optimizer_switch_default;
DROP TABLE t1,t2;
@@ -3134,7 +3136,5 @@ SET SESSION join_cache_level = DEFAULT;
DROP TABLE t1, t2;
-SET SESSION optimizer_switch=default;
-
# this must be the last command in the file
set @@optimizer_switch=@save_optimizer_switch;