|
|
@ -5989,6 +5989,15 @@ SELECT ( SELECT b FROM t2 WHERE b = a OR rand() * 0) FROM t1; |
|
|
|
1 |
|
|
|
NULL |
|
|
|
drop table t1,t2,t3; |
|
|
|
# |
|
|
|
# LP BUG#905353 Wrong non-empty result with a constant table, |
|
|
|
# aggregate function in subquery, MyISAM or Aria |
|
|
|
# |
|
|
|
CREATE TABLE t1 ( a INT ) ENGINE=MyISAM; |
|
|
|
INSERT INTO t1 VALUES (1); |
|
|
|
SELECT a FROM t1 WHERE ( SELECT MIN(a) = 100 ); |
|
|
|
a |
|
|
|
drop table t1; |
|
|
|
# return optimizer switch changed in the beginning of this test |
|
|
|
set optimizer_switch=@subselect_tmp; |
|
|
|
set @optimizer_switch_for_subselect_test=null; |