summaryrefslogtreecommitdiff
path: root/mysql-test/t/explain.test
diff options
context:
space:
mode:
authorEvgeny Potemkin <epotemkin@mysql.com>2008-10-27 15:04:51 +0300
committerEvgeny Potemkin <epotemkin@mysql.com>2008-10-27 15:04:51 +0300
commitfbb6efeb514ff5039fd7dda0d27210eb80d9ff9e (patch)
tree1c74c8ce1a6a3c25bbb30bb2a6ce46ab7c224b08 /mysql-test/t/explain.test
parent8d108cb53b48601aa0f570c918284e579ccff16b (diff)
parente27e56078388c2005b46073b5b295edcba79f359 (diff)
downloadmariadb-git-fbb6efeb514ff5039fd7dda0d27210eb80d9ff9e.tar.gz
Merged fix for the bug#37870.
Diffstat (limited to 'mysql-test/t/explain.test')
-rw-r--r--mysql-test/t/explain.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/explain.test b/mysql-test/t/explain.test
index 0247aca82df..e94f6d4d87d 100644
--- a/mysql-test/t/explain.test
+++ b/mysql-test/t/explain.test
@@ -123,4 +123,16 @@ execute s1;
DROP TABLE t1,t2;
+--echo #
+--echo # Bug#37870: Usage of uninitialized value caused failed assertion.
+--echo #
+create table t1 (dt datetime not null);
+create table t2 (dt datetime not null);
+insert into t1 values ('2001-01-01 1:1:1'), ('2001-01-01 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 );
+SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN (SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.dt IS NULL );
+drop tables t1, t2;
+
# End of 5.0 tests.