Re: [Django] #34346: QuerySet ordered by annotation with name used by select_related() field crashes with AmbiguousColumn. (was: Ambiguous order by regression in 4.2a1)

9 views
Skip to first unread message

Django

unread,
Feb 17, 2023, 4:10:28 AM2/17/23
to django-...@googlegroups.com
#34346: QuerySet ordered by annotation with name used by select_related() field
crashes with AmbiguousColumn.
-------------------------------------+-------------------------------------
Reporter: henribru | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* cc: Simon Charette, Florian Apolloner (added)
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted


Comment:

Thanks for the report.

Regression in 04518e310d4552ff7595a34f5a7f93487d78a406.
Reproduced at bae053d497ba8a8de7e4f725973924bfb1885fd2.

--
Ticket URL: <https://code.djangoproject.com/ticket/34346#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages