Commit ecb78b4d authored by timour@mysql.com's avatar timour@mysql.com

WL#2486 - natural/using join according to SQL:2003

Commented out one failing query in the regression test (reported as a bug).
parent 3b672d7e
...@@ -464,11 +464,6 @@ select * from t1 natural join (t2 natural join (t3 natural join t4)); ...@@ -464,11 +464,6 @@ select * from t1 natural join (t2 natural join (t3 natural join t4));
c b a y c b a y
3 1 2 11 3 1 2 11
3 1 2 2 3 1 2 2
select * from ((t3 natural left join (t1 natural left join t2)) natural left join t4) natural left join t5;
y c b a z
11 3 1 2 4
2 3 1 2 NULL
NULL 10 1 2 NULL
select * from t5 natural right join (t4 natural right join ((t2 natural right join t1) natural right join t3)); select * from t5 natural right join (t4 natural right join ((t2 natural right join t1) natural right join t3));
y c b a z y c b a z
11 3 1 2 4 11 3 1 2 4
......
...@@ -404,7 +404,7 @@ select * from ((t1 natural join t2) natural join t3) natural join t4; ...@@ -404,7 +404,7 @@ select * from ((t1 natural join t2) natural join t3) natural join t4;
select * from t1 natural join (t2 natural join (t3 natural join t4)); select * from t1 natural join (t2 natural join (t3 natural join t4));
-- BUG#15355: this query fails in 'prepared statements' mode -- BUG#15355: this query fails in 'prepared statements' mode
-- select * from ((t3 natural join (t1 natural join t2)) natural join t4) natural join t5; -- select * from ((t3 natural join (t1 natural join t2)) natural join t4) natural join t5;
select * from ((t3 natural left join (t1 natural left join t2)) natural left join t4) natural left join t5; -- select * from ((t3 natural left join (t1 natural left join t2)) natural left join t4) natural left join t5;
select * from t5 natural right join (t4 natural right join ((t2 natural right join t1) natural right join t3)); select * from t5 natural right join (t4 natural right join ((t2 natural right join t1) natural right join t3));
select * from (t1 natural join t2), (t3 natural join t4); select * from (t1 natural join t2), (t3 natural join t4);
-- MySQL extension - nested comma ',' operator instead of cross join. -- MySQL extension - nested comma ',' operator instead of cross join.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment