[MDEV-26680] Order from subquery lost Created: 2021-09-25 Updated: 2021-09-26 Resolved: 2021-09-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | N/A |
| Affects Version/s: | 10.4.12, 10.6.4 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | M-A-X | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS7 x64 |
||
| Description |
|
Test case:
Expected: Received: When add index by category_id works as expected |
| Comments |
| Comment by Daniel Black [ 2021-09-26 ] |
|
ORDER BY in subqueries isn't supported without a LIMIT https://mariadb.com/kb/en/subquery-limitations/ If you want an order by, it should be applied to the outer query. |