[MDEV-8110] Sorting Bug Created: 2015-05-06 Updated: 2015-05-06 Resolved: 2015-05-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Alexander Pentermann | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
The following initial situation: A small selection:
When I execute the following Command:
With Maria DB 10.0.17 I get the following result:
With MySQL Server 5.5 I get the following result:
The expected result is the MySQL 5.5 result. Is there a bug? |
| Comments |
| Comment by Elena Stepanova [ 2015-05-06 ] |
|
Please see this article which will hopefully answer your question: https://mariadb.com/kb/en/mariadb/why-is-order-by-in-a-from-subquery-ignored/ It describes the general situation with ORDER BY in subqueries.
So, the fact that what you are getting with MySQL now meets your expectations is pure luck and cannot be relied upon. This behavior can change any time, even in a minor release upgrade (and even more likely in the next major version), and it will not be considered as breaking compatibility. |
| Comment by Alexander Pentermann [ 2015-05-06 ] |
|
ok thank you! |