Bug #15357 | Natural join with nested cross-join produces incorrect columns | ||
---|---|---|---|
Submitted: | 30 Nov 2005 16:45 | Modified: | 7 Dec 2005 16:17 |
Reporter: | Timour Katchaounov | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.17 | OS: | |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[30 Nov 2005 16:45]
Timour Katchaounov
[30 Nov 2005 16:52]
Timour Katchaounov
In addition to the above queries, the following query should return a name resolution error, but it works: create table t6 (a int, c int); insert into t6 values (2, 3); select * from t6 natural join ((t1 natural join t2), (t3 natural join t4)); while this equivalent query produces an error as it should: select * from ((t1 natural join t2), (t3 natural join t4)) natural join t6;
[30 Nov 2005 16:54]
Timour Katchaounov
This query also must return error with duplicate column 'c', but it doesn't: select * from (t1 natural join t2) natural join (t3 join (t4 natural join t5) on (b < z));
[7 Dec 2005 16:17]
Timour Katchaounov
This bug is duplicate of BUG#15229.
[12 Dec 2005 15:34]
Timour Katchaounov
Notice that my initial guess that the problem is due to different handling of ',' inside nested joins was wrong. The problem with this bug was the same as that of BUG#15229.