diff options
author | Tatiana A. Nurnberg <azundris@mysql.com> | 2010-03-02 18:13:43 +0000 |
---|---|---|
committer | Tatiana A. Nurnberg <azundris@mysql.com> | 2010-03-02 18:13:43 +0000 |
commit | a3edaa0ceaaae169155b8bd0604e76ef92299a2f (patch) | |
tree | d373e08f12c68a7f20a913d5edbfedf431c6f695 /mysql-test/t/explain.test | |
parent | fe229e33f7fdde3c5afe1c78522626562fcb4941 (diff) | |
parent | c610e9783aa4474d2b4418f1b3b3685716a83454 (diff) | |
download | mariadb-git-a3edaa0ceaaae169155b8bd0604e76ef92299a2f.tar.gz |
manual merge
Diffstat (limited to 'mysql-test/t/explain.test')
-rw-r--r-- | mysql-test/t/explain.test | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/mysql-test/t/explain.test b/mysql-test/t/explain.test index 77b49a8b1a5..1806fde456a 100644 --- a/mysql-test/t/explain.test +++ b/mysql-test/t/explain.test @@ -147,26 +147,6 @@ EXPLAIN SELECT DISTINCT 1 FROM t1, WHERE t1.a = d1.a; DROP TABLE t1; -# End of 5.0 tests. - ---echo # ---echo # Bug#37870: Usage of uninitialized value caused failed assertion. ---echo # -create table t1 (dt datetime not null, t time not null); -create table t2 (dt datetime not null); -insert into t1 values ('2001-01-01 1:1:1', '1:1:1'), -('2001-01-01 1:1:1', '1:1:1'); -insert into t2 values ('2001-01-01 1:1:1'), ('2001-01-01 1:1:1'); -flush tables; -EXPLAIN SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN (SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.dt IS NULL ); -flush tables; -SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN (SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.dt IS NULL ); -flush tables; -EXPLAIN SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN ( SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.t < '2005-11-13 7:41:31' ); -flush tables; -SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN ( SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.t < '2005-11-13 7:41:31' ); -drop tables t1, t2; - --echo # --echo # Bug#48295: --echo # explain extended crash with subquery and ONLY_FULL_GROUP_BY sql_mode @@ -187,4 +167,24 @@ SET SESSION sql_mode=@old_sql_mode; DROP TABLE t1; +--echo End of 5.0 tests. + +--echo # +--echo # Bug#37870: Usage of uninitialized value caused failed assertion. +--echo # +create table t1 (dt datetime not null, t time not null); +create table t2 (dt datetime not null); +insert into t1 values ('2001-01-01 1:1:1', '1:1:1'), +('2001-01-01 1:1:1', '1:1:1'); +insert into t2 values ('2001-01-01 1:1:1'), ('2001-01-01 1:1:1'); +flush tables; +EXPLAIN SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN (SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.dt IS NULL ); +flush tables; +SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN (SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.dt IS NULL ); +flush tables; +EXPLAIN SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN ( SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.t < '2005-11-13 7:41:31' ); +flush tables; +SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN ( SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.t < '2005-11-13 7:41:31' ); +drop tables t1, t2; + --echo End of 5.1 tests. |