Changes between Initial Version and Version 1 of Ticket #34123, comment 9


Ignore:
Timestamp:
Nov 8, 2022, 2:24:54 AM (23 months ago)
Author:
David Sanders

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34123, comment 9

    initial v1  
    11Simon, 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()`.
    22
    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-L467
     3I'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
    44
    55(because if selects are always aliases then this is no longer something that can be relied on)
Back to Top