Bug #11864 | non unique names are allowed in subquery | ||
---|---|---|---|
Submitted: | 11 Jul 2005 15:34 | Modified: | 17 Aug 2005 18:24 |
Reporter: | Gleb Paharenko | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 5.0.7/5.0.10 BK | OS: | Linux (Linux) |
Assigned to: | Evgeny Potemkin | CPU Architecture: | Any |
[11 Jul 2005 15:34]
Gleb Paharenko
[13 Jul 2005 10:08]
Richard Cyganiak
As noted in the original email, using the ambiguous name sometimes causes an error and sometimes refers to the first column. No error: SELECT A FROM (SELECT * FROM Tbl1, Tbl2) AS foo; Error: SELECT * FROM (SELECT * FROM Tbl1, Tbl2) AS foo ORDER BY A; This seems like a bug to me even if ambiguous names are allowed in principle.
[10 Aug 2005 13:43]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/28108
[15 Aug 2005 10:07]
Evgeny Potemkin
Fixed in 5.0.12, cset 1.1918.3.1
[17 Aug 2005 18:24]
Paul DuBois
Noted in 5.0.12 changelog.