summaryrefslogtreecommitdiff
path: root/mysql-test/r/subselect_debug.result
blob: 54610d51d78d938a60f65b9237b0757307ac903f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
CREATE TABLE t1(id INT);
INSERT INTO t1 VALUES (1),(2),(3),(4);
INSERT INTO t1 SELECT a.id FROM t1 a,t1 b,t1 c,t1 d;
SET @orig_debug=@@debug;
SET GLOBAL debug="d,subselect_exec_fail";
SELECT SUM(EXISTS(SELECT RAND() FROM t1)) FROM t1;
SUM(EXISTS(SELECT RAND() FROM t1))
0
SELECT REVERSE(EXISTS(SELECT RAND() FROM t1));
REVERSE(EXISTS(SELECT RAND() FROM t1))
0
SET GLOBAL debug=@orig_debug;
DROP TABLE t1;