summaryrefslogtreecommitdiff
path: root/mysql-test/t/subselect_sj.test
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2011-06-22 15:22:27 +0400
committerSergey Petrunya <psergey@askmonty.org>2011-06-22 15:22:27 +0400
commited54ec7eb5ee5747293155f50752a47c2c3f1ec7 (patch)
treece2569ce8f31a934df53f3ca0872ae86fc3ca4fa /mysql-test/t/subselect_sj.test
parenteea95a15d3648fcf01a146813c6de398d08f5246 (diff)
downloadmariadb-git-ed54ec7eb5ee5747293155f50752a47c2c3f1ec7.tar.gz
Make semi-joins work with outer joins:
- evaluate_null_complemented_join_record() should perform FirstMatch checks.
Diffstat (limited to 'mysql-test/t/subselect_sj.test')
-rw-r--r--mysql-test/t/subselect_sj.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/t/subselect_sj.test b/mysql-test/t/subselect_sj.test
index 4436373e2a9..515cc4c13d9 100644
--- a/mysql-test/t/subselect_sj.test
+++ b/mysql-test/t/subselect_sj.test
@@ -1291,6 +1291,12 @@ explain
select * from t0 where a in (select t1.a from t1 left join t2 on t1.a=t2.a);
select * from t0 where a in (select t1.a from t1 left join t2 on t1.a=t2.a);
+
+set optimizer_switch='firstmatch=on';
+explain
+select * from t0 where a in (select t1.a from t1 left join t2 on t1.a=t2.a);
+select * from t0 where a in (select t1.a from t1 left join t2 on t1.a=t2.a);
+
set @@join_cache_level=@tmp_jcl_20110622;
set @@optimizer_switch=@tmp_20110622;