summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2011-06-02 23:52:36 +0400
committerSergey Petrunya <psergey@askmonty.org>2011-06-02 23:52:36 +0400
commitc44c1bd188fc01ca56490d20e855035e8299b33f (patch)
tree9f705ca75ca20d667e5277427637999c4760756d /mysql-test/t
parent97db03152184660a227788224fdcfe078da24c35 (diff)
parentebb130b189263120d4ce1ed430d80cd026b38698 (diff)
downloadmariadb-git-c44c1bd188fc01ca56490d20e855035e8299b33f.tar.gz
Merge fix for BUG#787299.
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/subselect_sj.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/subselect_sj.test b/mysql-test/t/subselect_sj.test
index eeca05985b8..91185f78aac 100644
--- a/mysql-test/t/subselect_sj.test
+++ b/mysql-test/t/subselect_sj.test
@@ -1137,5 +1137,18 @@ WHERE
WHERE C.t2field IN (SELECT D.t2field FROM t2 D));
drop table t1,t2;
+--echo #
+--echo # BUG#787299: Valgrind complains on a join query with two IN subqueries
+--echo #
+create table t1 (a int);
+insert into t1 values (1), (2), (3);
+create table t2 as select * from t1;
+select * from t1 A, t1 B
+ where A.a = B.a and A.a in (select a from t2 C) and B.a in (select a from t2 D);
+explain
+select * from t1 A, t1 B
+ where A.a = B.a and A.a in (select a from t2 C) and B.a in (select a from t2 D);
+drop table t1, t2;
+
# The following command must be the last one the file
set @@optimizer_switch=@save_optimizer_switch;