diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2011-11-02 22:05:08 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2011-11-02 22:05:08 +0400 |
commit | 9b761df393341bb15d6892ae8def9ae84d07305b (patch) | |
tree | b94635e7fc3c1a99c3c46b594b73b7e60b1d6c9f /mysql-test/t/subselect_sj.test | |
parent | 600a03bf53b7a55f8ecab77144c47b539586bb57 (diff) | |
download | mariadb-git-9b761df393341bb15d6892ae8def9ae84d07305b.tar.gz |
BUG#878753: Assertion '0' failed in replace_where_subcondition with derived_merge
- Remove the assert in replace_where_subcondition (the patch has explanation why)
Diffstat (limited to 'mysql-test/t/subselect_sj.test')
-rw-r--r-- | mysql-test/t/subselect_sj.test | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mysql-test/t/subselect_sj.test b/mysql-test/t/subselect_sj.test index 385bf35753a..9d618a8590e 100644 --- a/mysql-test/t/subselect_sj.test +++ b/mysql-test/t/subselect_sj.test @@ -1827,5 +1827,30 @@ SELECT * FROM t1 WHERE (a) IN (SELECT a FROM t2 JOIN t3 ON b = a); DROP TABLE t1,t2,t3; set optimizer_switch=@tmp_877288; +--echo # +--echo # BUG#878753: Assertion '0' failed in replace_where_subcondition with derived_merge +--echo # +set @tmp878753= @@optimizer_switch; +set optimizer_switch= 'semijoin=on,derived_merge=on'; +CREATE TABLE t1 (b int(11)) ; +CREATE TABLE t2 (c int, b int, d varchar(52) NOT NULL) ; +CREATE TABLE t3 (b int(11)) ; + +PREPARE st1 FROM ' + SELECT * FROM t1 + JOIN ( + SELECT t2.* FROM t2 + WHERE t2.d <> "a" + AND t2.c IN ( + SELECT t3.b + FROM t3 + ) + ) AS alias2 + ON ( alias2.b = t1.b ); +'; +EXECUTE st1; +DROP TABLE t1,t2,t3; +set optimizer_switch=@tmp878753; + # The following command must be the last one the file set optimizer_switch=@subselect_sj_tmp; |