1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

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'.
This commit is contained in:
Igor Babaev
2011-05-04 18:08:44 -07:00
parent e3e2358fd2
commit 20c9084deb
5 changed files with 38 additions and 2 deletions

View File

@@ -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;