Bug #6728 | Incorrect sort order with UNION | ||
---|---|---|---|
Submitted: | 20 Nov 2004 0:04 | Modified: | 18 Jan 2005 17:09 |
Reporter: | Daniel Grace | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.1.7-standard | OS: | Linux (Linux) |
Assigned to: | CPU Architecture: | Any |
[20 Nov 2004 0:04]
Daniel Grace
[29 Dec 2004 18:14]
Danny Grasse
I have just downloaded 4.1.8 for Windows XP and am experiencing the same behavior. The hack I've introduced to my sql code to get the 'order by' clause working is to add a 'limit' clause. The caveat, of course, is to make sure the limit value is greater than the number of returned recorder.
[17 Jan 2005 18:33]
MySQL Verification Team
It has been decided that this behaviour will remain, as changes have been done to mix freely select nodes with and without braces, leading to this behaviour as one of the consequence.
[18 Jan 2005 7:22]
Daniel Grace
Even though the how to reproduce code posted disregards ALL of the order by clauses?
[18 Jan 2005 17:09]
MySQL Verification Team
Exactly ... Separate sorting is no longer supported. This will be updated in the manual soon, if not done already.