2010-01-17 17:51:10 +03:00
|
|
|
#
|
|
|
|
# Run subselect.test without semi-join optimization (test materialize)
|
|
|
|
#
|
2010-07-16 12:58:24 +04:00
|
|
|
select @@optimizer_switch like '%materialization=on%';
|
2010-01-17 17:51:10 +03:00
|
|
|
set optimizer_switch='materialization=off';
|
2011-07-08 18:46:47 +04:00
|
|
|
set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
|
2010-01-17 17:51:10 +03:00
|
|
|
|
2011-12-15 14:26:59 -08:00
|
|
|
set join_cache_level=1;
|
|
|
|
set @join_cache_level_for_subselect_test=@@join_cache_level;
|
|
|
|
|
2018-03-09 14:05:35 +02:00
|
|
|
--source subselect.test
|
2010-01-17 17:51:10 +03:00
|
|
|
|
|
|
|
set optimizer_switch=default;
|
2010-07-16 12:58:24 +04:00
|
|
|
select @@optimizer_switch like '%materialization=on%';
|
2011-12-15 14:26:59 -08:00
|
|
|
set @join_cache_level_for_subselect_test=NULL;
|
|
|
|
|
2010-01-17 17:51:10 +03:00
|
|
|
|