diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2013-08-28 21:21:12 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2013-08-28 21:21:12 +0400 |
commit | d6f7649d3c7f2e055a77ef9432c245928675ef4c (patch) | |
tree | 443bac02c87b166e480e88bdd2a7d0e09c9aeb52 /mysql-test/t/join_outer.test | |
parent | 184df985829eef49a7af251ec8cb96117c4194dd (diff) | |
download | mariadb-git-d6f7649d3c7f2e055a77ef9432c245928675ef4c.tar.gz |
mdev-4942: Add another testcase after merging with other fixes.
Diffstat (limited to 'mysql-test/t/join_outer.test')
-rw-r--r-- | mysql-test/t/join_outer.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/join_outer.test b/mysql-test/t/join_outer.test index 765118d4775..7452e81ca23 100644 --- a/mysql-test/t/join_outer.test +++ b/mysql-test/t/join_outer.test @@ -1706,6 +1706,19 @@ INSERT INTO t2 VALUES (1,10),(2,20); SELECT * FROM t1 LEFT JOIN t2 ON i1 = j2 WHERE d1 IS NULL AND 1 OR i1 = i2; DROP TABLE t1,t2; +--echo # Another testcase +CREATE TABLE t1 (i1 INT) ENGINE=MyISAM; +INSERT INTO t1 VALUES (NULL); + +CREATE TABLE t2 (i2 INT, a INT, b INT) ENGINE=MyISAM; +CREATE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2; + +INSERT INTO t2 VALUES (NULL,1,2),(NULL,2,3); +SELECT * FROM t1 LEFT JOIN v2 ON i1 = i2 WHERE a < b; +SELECT * FROM t1 LEFT JOIN t2 ON i1 = i2 WHERE a < b; + +drop view v2; +drop table t1,t2; --echo # --echo # Bug mdev-4942: LEFT JOIN with conjunctive |