Bug #5852 | ORDER BY doesn't recognize column names with UNIONs in select statements | ||
---|---|---|---|
Submitted: | 1 Oct 2004 17:43 | Modified: | 11 Oct 2004 20:05 |
Reporter: | Wayne Witzke | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.0.20a | OS: | Windows (Windows 2000 Server) |
Assigned to: | CPU Architecture: | Any |
[1 Oct 2004 17:43]
Wayne Witzke
[1 Oct 2004 18:26]
Wayne Witzke
You could also fix this with a Left Outer Join followed by a series of joins :-)
[1 Oct 2004 18:28]
MySQL Verification Team
This is a known deficiency of 4.0. You must omit table name and it will work. It had to be done that way in order to avoid some bugs. This is fully fixed in 4.1.
[11 Oct 2004 20:05]
Sergei Golubchik
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the original bug instead. Thank you for your interest in MySQL. Additional info: duplicate of http://bugs.mysql.com/4098