diff options
Diffstat (limited to 'mysql-test/t/subselect2.test')
-rw-r--r-- | mysql-test/t/subselect2.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/t/subselect2.test b/mysql-test/t/subselect2.test index 162bdd0d90a..5f819ed39ba 100644 --- a/mysql-test/t/subselect2.test +++ b/mysql-test/t/subselect2.test @@ -8,6 +8,9 @@ drop table if exists t1, t2, t3, t4; --enable_warnings +set @subselect2_test_tmp=@@optimizer_switch; +set optimizer_switch='semijoin=on,firstmatch=on,mrr=on,mrr_sort_keys=on,index_condition_pushdown=on'; + CREATE TABLE t1 ( DOCID VARCHAR(32)BINARY NOT NULL @@ -168,3 +171,6 @@ SELECT t1.* FROM t1 WHERE (SELECT COUNT(*) FROM t3,t2 WHERE t3.c=t2.a and t2.a='1' AND t1.a=t3.b) > 0; DROP TABLE t1,t2,t3; + +set optimizer_switch=@subselect2_test_tmp; + |