summaryrefslogtreecommitdiff
path: root/mysql-test/t/subselect_nulls.test
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2011-11-02 13:48:41 +0400
committerSergey Petrunya <psergey@askmonty.org>2011-11-02 13:48:41 +0400
commit47861a657762feeb45ee6b8edea00033bbd0e8ca (patch)
tree060d07487e32539e3edc12f1b5122969d112c6d6 /mysql-test/t/subselect_nulls.test
parent64986873252e6c4fff867407d1b2f92abe24ca88 (diff)
downloadmariadb-git-47861a657762feeb45ee6b8edea00033bbd0e8ca.tar.gz
Change the default @@optimizer_switch settings:
- semijoin=on - firstmatch=on - loosescan=on
Diffstat (limited to 'mysql-test/t/subselect_nulls.test')
-rw-r--r--mysql-test/t/subselect_nulls.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/t/subselect_nulls.test b/mysql-test/t/subselect_nulls.test
index 6de7820872c..4b08e773b17 100644
--- a/mysql-test/t/subselect_nulls.test
+++ b/mysql-test/t/subselect_nulls.test
@@ -5,6 +5,9 @@ drop table if exists x1;
drop table if exists x2;
--enable_warnings
+set @tmp_subselect_nulls=@@optimizer_switch;
+set optimizer_switch='semijoin=off';
+
create table x1(k int primary key, d1 int, d2 int);
create table x2(k int primary key, d1 int, d2 int);
@@ -90,5 +93,7 @@ where exists (select *
from x2
where x1.d1=x2.d1 and x1.d2=x2.d2);
+set optimizer_switch= @tmp_subselect_nulls;
+
drop table x1;
drop table x2;