Changes between Initial Version and Version 1 of Ticket #34123, comment 9
- Timestamp:
- Nov 8, 2022, 2:24:54 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34123, comment 9
initial v1 1 1 Simon, correct the `1st ORDER BY term does not match any column in the result set` on SQLite also happens because of the ambiguous reference in `ORDER BY id` from `first()` when using `select_related()`. 2 2 3 I'm currently trying to determine a better way to determine an order by match rather than relying on aliases like is currently being done: https://github.com/django/django/blob/ main/django/db/models/sql/compiler.py#L464-L4673 I'm currently trying to determine a better way to determine an order by match rather than relying on aliases like is currently being done: https://github.com/django/django/blob/7b94847e384b1a8c05a7d4c8778958c0290bdf9a/django/db/models/sql/compiler.py#L437-L440 4 4 5 5 (because if selects are always aliases then this is no longer something that can be relied on)