Re: [Django] #32116: QuerySet.order_by() crashes on combined queryset with a single non-empty query.

102 views
Skip to first unread message

Django

unread,
Oct 19, 2020, 2:14:39 AM10/19/20
to django-...@googlegroups.com
#32116: QuerySet.order_by() crashes on combined queryset with a single non-empty
query.
-------------------------------------+-------------------------------------
Reporter: Hannes Ljungberg | Owner: hannes
| ljungberg
Type: Bug | Status: assigned
Component: Database layer | Version: 3.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak):

Raising `django.db.utils.DatabaseError: ORDER BY not allowed in subqueries
of compound statements.` is not a big issue IMO, I would say that is a
cleanup. However it generates and incorrect SQL after
2cbd3967e0a51eab993df89679046d25ec78baec which should be fixed as a bug.

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

Reply all
Reply to author
Forward
0 new messages