1 --replace_column 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x
3 SELECT MIN( a ) FROM t1 WHERE a = NULL;
4 SELECT MIN( a ) FROM t1 WHERE a = NULL;
6 --replace_column 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x
8 SELECT MIN( a ) FROM t1 WHERE a <> NULL;
9 SELECT MIN( a ) FROM t1 WHERE a <> NULL;
11 --replace_column 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x
13 SELECT MIN( a ) FROM t1 WHERE a > NULL;
14 SELECT MIN( a ) FROM t1 WHERE a > NULL;
16 --replace_column 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x
18 SELECT MIN( a ) FROM t1 WHERE a < NULL;
19 SELECT MIN( a ) FROM t1 WHERE a < NULL;
21 if (!$skip_null_safe_test)
23 --replace_column 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x
25 SELECT MIN( a ) FROM t1 WHERE a <=> NULL;
26 SELECT MIN( a ) FROM t1 WHERE a <=> NULL;
28 --replace_column 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x
30 SELECT MIN( a ) FROM t1 WHERE a BETWEEN NULL AND 10;
31 SELECT MIN( a ) FROM t1 WHERE a BETWEEN NULL AND 10;
33 --replace_column 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x
35 SELECT MIN( a ) FROM t1 WHERE a BETWEEN NULL AND NULL;
36 SELECT MIN( a ) FROM t1 WHERE a BETWEEN NULL AND NULL;
38 --replace_column 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x
40 SELECT MIN( a ) FROM t1 WHERE a BETWEEN 10 AND NULL;
41 SELECT MIN( a ) FROM t1 WHERE a BETWEEN 10 AND NULL;
43 --replace_column 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x
45 SELECT MIN( a ) FROM t1 WHERE a = (SELECT a FROM t1 WHERE a < 0);
46 SELECT MIN( a ) FROM t1 WHERE a = (SELECT a FROM t1 WHERE a < 0);
48 --replace_column 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x
50 SELECT MIN( a ) FROM t1 WHERE a IS NULL;
51 SELECT MIN( a ) FROM t1 WHERE a IS NULL;