summaryrefslogtreecommitdiff
path: root/mysql-test/t/explain.test
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2011-05-04 18:08:44 -0700
committerIgor Babaev <igor@askmonty.org>2011-05-04 18:08:44 -0700
commit20c9084deb6075f675ebabc5fd073f8ff93130e2 (patch)
tree0f57255ba24c270abaaf85c5cd35c8e4ef5467ec /mysql-test/t/explain.test
parente3e2358fd27264c7cd85b3e167bbc9e75062daca (diff)
downloadmariadb-git-20c9084deb6075f675ebabc5fd073f8ff93130e2.tar.gz
Fixed LP bug #776295.
If the value of the flag cond_false of an Item_equal object is true then the print method must return the string '0'.
Diffstat (limited to 'mysql-test/t/explain.test')
-rw-r--r--mysql-test/t/explain.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/t/explain.test b/mysql-test/t/explain.test
index c6c30b58341..8380aa668b0 100644
--- a/mysql-test/t/explain.test
+++ b/mysql-test/t/explain.test
@@ -265,3 +265,19 @@ DEALLOCATE PREPARE stmt;
DROP TABLE t1;
--echo End of 5.1 tests.
+
+--echo #
+--echo # Bug#776295: EXPLAIN EXTENDED with always false multiple equality
+--echo # in the WHERE condition of a derived table
+--echo #
+
+CREATE TABLE t1 (a int) ;
+
+CREATE TABLE t2 (a int) ;
+INSERT INTO t2 VALUES (8);
+
+EXPLAIN EXTENDED
+SELECT * FROM ( SELECT t1.a FROM t1,t2 WHERE t2.a = t1.a ) AS t;
+
+DROP TABLE t1,t2;
+