summaryrefslogtreecommitdiff
path: root/mysql-test/main/subselect_no_mat.test
blob: 173dd104968234e3b49d17e3659677549a590d76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 
# Run subselect.test without semi-join optimization (test materialize)
#
select @@optimizer_switch like '%materialization=on%';
set optimizer_switch='materialization=off';
set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';

set join_cache_level=1;
set @join_cache_level_for_subselect_test=@@join_cache_level;

--source subselect.test

set optimizer_switch=default;
select @@optimizer_switch like '%materialization=on%';
set @join_cache_level_for_subselect_test=NULL;