[MDEV-12872] incorrect result order when reusing aliases Created: 2017-05-23 Updated: 2017-10-09 Resolved: 2017-10-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Affects Version/s: | 10.0, 10.1, 10.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Oleksandr Byelkin | Assignee: | Oleksandr Byelkin |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 10.2.10 | ||||||||
| Description |
|
In fact, this behavior was changed in scope of
On the other hand, MySQL 5.7 now sorts by name. So, if it was an unfixed bug in MySQL and correct result in MariaDB, it's vice versa now, and you'll have to re-fix it.
|
| Comments |
| Comment by Oleksandr Byelkin [ 2017-10-09 ] | |||||||||||||||||||||||||||||||
|
First select explicit order by derived table (table name is mentioned), second by result column (no table name). IMHO it is correct. | |||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2017-10-09 ] | |||||||||||||||||||||||||||||||
|
MySQL 8.0 in both cases uses result list which is not correct. |