summaryrefslogtreecommitdiff
path: root/mysql-test/t/explain.test
diff options
context:
space:
mode:
authorGeorgi Kodinov <joro@sun.com>2009-03-11 14:29:59 +0200
committerGeorgi Kodinov <joro@sun.com>2009-03-11 14:29:59 +0200
commitba1b5eb4b5149293df466f8713c02f2614dd22f4 (patch)
tree1833fea621f6e100c4be1abf244ade1bf17c8f5a /mysql-test/t/explain.test
parent16d7c26b7139fd6ae0ef05b0b2cbf3286de06582 (diff)
parentd3d6f4fdad8176abe0d8981d79a925731df9a5d0 (diff)
downloadmariadb-git-ba1b5eb4b5149293df466f8713c02f2614dd22f4.tar.gz
merged bug 43354 to 5.1-bugteam
Diffstat (limited to 'mysql-test/t/explain.test')
-rw-r--r--mysql-test/t/explain.test17
1 files changed, 16 insertions, 1 deletions
diff --git a/mysql-test/t/explain.test b/mysql-test/t/explain.test
index 3a71fde4421..755e126baf2 100644
--- a/mysql-test/t/explain.test
+++ b/mysql-test/t/explain.test
@@ -123,6 +123,21 @@ execute s1;
DROP TABLE t1,t2;
+
+#
+# Bug #43354: Use key hint can crash server in explain extended query
+#
+
+CREATE TABLE t1 (a INT PRIMARY KEY);
+
+--error ER_KEY_DOES_NOT_EXITS
+EXPLAIN EXTENDED SELECT COUNT(a) FROM t1 USE KEY(a);
+
+DROP TABLE t1;
+
+
+# End of 5.0 tests.
+
--echo #
--echo # Bug#37870: Usage of uninitialized value caused failed assertion.
--echo #
@@ -141,4 +156,4 @@ 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;
-# End of 5.0 tests.
+--echo End of 5.1 tests.