diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-10-18 23:33:06 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-10-18 23:33:06 +0200 |
commit | 68baf07dcd985376fae9d24c12ee0ff560b61e8f (patch) | |
tree | 175f775e9847a50e7b51162573ae24f276abea96 /mysql-test/r/subselect_no_scache.result | |
parent | cbaf6e6b61241db6e97648c73dbeb0a15614a7aa (diff) | |
parent | 362c2bca3e170031d33622f27d978c9570d0a9f5 (diff) | |
download | mariadb-git-68baf07dcd985376fae9d24c12ee0ff560b61e8f.tar.gz |
5.3 merge
Diffstat (limited to 'mysql-test/r/subselect_no_scache.result')
-rw-r--r-- | mysql-test/r/subselect_no_scache.result | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/r/subselect_no_scache.result b/mysql-test/r/subselect_no_scache.result index f648385f67a..6fd21f8d0b0 100644 --- a/mysql-test/r/subselect_no_scache.result +++ b/mysql-test/r/subselect_no_scache.result @@ -6644,6 +6644,23 @@ a ( 3, 3 ) NOT IN ( SELECT NULL, NULL ) set optimizer_switch=@mdev367_optimizer_switch; DROP TABLE t1; # +# MDEV-521 single value subselect transformation problem +# +CREATE TABLE t1 (f1 char(2), PRIMARY KEY (f1)) ENGINE=MyISAM; +INSERT INTO t1 VALUES ('u1'),('u2'); +SELECT a.* FROM t1 a WHERE ( SELECT EXISTS ( SELECT 1 FROM t1 b WHERE b.f1 = a.f1 ) ); +f1 +u1 +u2 +FLUSH TABLES; +SELECT a.* FROM t1 a WHERE ( SELECT EXISTS ( SELECT 1 FROM t1 b WHERE b.f1 = a.f1 ) ); +f1 +u1 +u2 +DROP TABLE t1; +# return optimizer switch changed in the beginning of this test +set optimizer_switch=@subselect_tmp; +# # lp:944706 Query with impossible or constant subquery in WHERE or HAVING is not # precomputed and thus not part of optimization # |