summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-08-02 11:12:11 +0200
committerunknown <serg@serg.mylan>2004-08-02 11:12:11 +0200
commitea8ac8ab9845e039e5770821c5dbfc4604390299 (patch)
tree695c5281bfa4bfd124f93bb91176c94e73bcc89c /mysql-test
parent3c1327021a837257b3b75a75ae2bc92acae6d719 (diff)
downloadmariadb-git-ea8ac8ab9845e039e5770821c5dbfc4604390299.tar.gz
hang in dummy natural join (no common columns) Bug #4807
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/join.result6
-rw-r--r--mysql-test/t/join.test10
2 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/join.result b/mysql-test/r/join.result
index db9b051a58f..dc763472b0e 100644
--- a/mysql-test/r/join.result
+++ b/mysql-test/r/join.result
@@ -283,6 +283,12 @@ ID Value1 Value2
SELECT * FROM t1 NATURAL JOIN t2 WHERE (Value1 = 'A' AND Value2 <> 'B') AND 1;
ID Value1 Value2
drop table t1,t2;
+CREATE TABLE t1 (a int);
+CREATE TABLE t2 (b int);
+CREATE TABLE t3 (c int);
+SELECT * FROM t1 NATURAL JOIN t2 NATURAL JOIN t3;
+a b c
+DROP TABLE t1, t2, t3;
create table t1 (i int);
create table t2 (i int);
create table t3 (i int);
diff --git a/mysql-test/t/join.test b/mysql-test/t/join.test
index bba5cdeee58..1d18e020543 100644
--- a/mysql-test/t/join.test
+++ b/mysql-test/t/join.test
@@ -285,6 +285,16 @@ SELECT * FROM t1 NATURAL JOIN t2 WHERE (Value1 = 'A' AND Value2 <> 'B') AND 1;
drop table t1,t2;
#
+# dummy natural join (no common columns) Bug #4807
+#
+
+CREATE TABLE t1 (a int);
+CREATE TABLE t2 (b int);
+CREATE TABLE t3 (c int);
+SELECT * FROM t1 NATURAL JOIN t2 NATURAL JOIN t3;
+DROP TABLE t1, t2, t3;
+
+#
# Test combination of join methods
#