summaryrefslogtreecommitdiff
path: root/mysql-test/t/join.test
diff options
context:
space:
mode:
authorSergey Glukhov <Sergey.Glukhov@sun.com>2010-03-26 11:44:24 +0400
committerSergey Glukhov <Sergey.Glukhov@sun.com>2010-03-26 11:44:24 +0400
commitf57839cd6060ff2d8edb4bf0875b67d0176d88e4 (patch)
treec5a754b2062abebbea62dea7e12133cdfcc41d7c /mysql-test/t/join.test
parentbccf219bfc61bb45d334b40d732651eb9bef5075 (diff)
downloadmariadb-git-f57839cd6060ff2d8edb4bf0875b67d0176d88e4.tar.gz
Bug#52177 crash with explain, row comparison, join, text field
The crash is the result of an attempt made by JOIN::optimize to evaluate the WHERE condition when no records have been actually read. The fix is to remove erroneous 'outer_join' variable check. mysql-test/r/join.result: test result mysql-test/t/join.test: test case sql/sql_select.cc: removed erroneous 'outer_join' variable check.
Diffstat (limited to 'mysql-test/t/join.test')
-rw-r--r--mysql-test/t/join.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/join.test b/mysql-test/t/join.test
index ba61da289bc..a9900c34f1e 100644
--- a/mysql-test/t/join.test
+++ b/mysql-test/t/join.test
@@ -725,4 +725,15 @@ SELECT 1 FROM v1 right join v1 AS v2 ON RAND();
DROP VIEW v1;
DROP TABLE t1;
+--echo #
+--echo # Bug#52177 crash with explain, row comparison, join, text field
+--echo #
+CREATE TABLE t1 (a TINYINT, b TEXT, KEY (a));
+INSERT INTO t1 VALUES (0,''),(0,'');
+FLUSH TABLES;
+EXPLAIN SELECT 1 FROM t1 LEFT JOIN t1 a ON 1
+WHERE ROW(t1.a, 1111.11) = ROW(1111.11, 1111.11) AND
+ROW(t1.b, 1111.11) <=> ROW('','');
+DROP TABLE t1;
+
--echo End of 5.0 tests.