2011-07-15 11:36:36 +03:00
|
|
|
#
|
|
|
|
# Run subselect.test without semi-join optimization (test materialize)
|
|
|
|
#
|
|
|
|
select @@optimizer_switch like '%subquery_cache=on%';
|
2011-10-05 18:18:00 +03:00
|
|
|
set optimizer_switch='subquery_cache=off';
|
2011-07-15 11:36:36 +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
|
2011-07-15 11:36:36 +03:00
|
|
|
|
|
|
|
set optimizer_switch=default;
|
|
|
|
select @@optimizer_switch like '%subquery_cache=on%';
|
2011-12-15 14:26:59 -08:00
|
|
|
set @join_cache_level_for_subselect_test=NULL;
|
2011-07-15 11:36:36 +03:00
|
|
|
|