Changes between Initial Version and Version 1 of Ticket #34771
- Timestamp:
- Aug 11, 2023, 9:57:06 AM (16 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34771 – Description
initial v1 74 74 This is under MySQL 8.0.33 by the way. Not sure if it's just syntax not supported by MySQL. 75 75 76 Since Django doesn't seem to require an annotated field to be present in `values` or `values_list` to be used in `order_by`, my humble opinion is that it should be slightly smarter for this case by implicitly adding the field into the `SELECT` statement .76 Since Django doesn't seem to require an annotated field to be present in `values` or `values_list` to be used in `order_by`, my humble opinion is that it should be slightly smarter for this case by implicitly adding the field into the `SELECT` statement, and use its alias in the `ORDER BY`. 77 77 78 78 Thanks for taking a look, and feel free to let me know if you need more information.