summaryrefslogtreecommitdiff
path: root/mysql-test/t/subselect_sj.test
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2011-12-15 14:26:59 -0800
committerIgor Babaev <igor@askmonty.org>2011-12-15 14:26:59 -0800
commita910e8ef5b5d33cd600acaba9ec3cc8c49881196 (patch)
treeceab0338af1b7b100b069fec4e6be7cf31b48a44 /mysql-test/t/subselect_sj.test
parentf5dac20f38fcf581b0616562cd2da21fb8c50218 (diff)
downloadmariadb-git-a910e8ef5b5d33cd600acaba9ec3cc8c49881196.tar.gz
Made join_cache_level == 2 by default.
Diffstat (limited to 'mysql-test/t/subselect_sj.test')
-rw-r--r--mysql-test/t/subselect_sj.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/subselect_sj.test b/mysql-test/t/subselect_sj.test
index 3b419dc0d09..6cd74b9689d 100644
--- a/mysql-test/t/subselect_sj.test
+++ b/mysql-test/t/subselect_sj.test
@@ -12,6 +12,14 @@ set optimizer_switch='semijoin=on,firstmatch=on,loosescan=on';
set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
SET optimizer_switch=ifnull(@optimizer_switch_for_subselect_sj_test,'outer_join_with_cache=off');
SET optimizer_switch=ifnull(@optimizer_switch_for_subselect_sj_test,'semijoin_with_cache=off');
+if (`select @join_cache_level_for_subselect_sj_test is null`)
+{
+ set join_cache_level=1;
+}
+if (`select @join_cache_level_for_subselect_sj_test is not null`)
+{
+ set join_cache_level=@join_cache_level_for_subselect_sj_test;
+}
# The 'default' value within the scope of this test:
set @save_optimizer_switch=@@optimizer_switch;