#31094: Subquery uses ungrouped column "table.column" from outer query.
-------------------------------------+-------------------------------------
Reporter: Johannes Hoppe | Owner: Simon
| Charette
Type: Bug | Status: assigned
Component: Database layer | Version: 3.0
(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 Simon Charette):
* owner: nobody => Simon Charette
* status: new => assigned
Comment:
I think the correct solution here will be to make
`Subquery.get_group_by_cols` return all its `OuterRef` expressions when
`alias is None`; that is the ones contained in its annotations and where
clause.
That would result in an additional `GROUP BY T4."position"` in the outer
query as PostgreSQL expects.
--
Ticket URL: <https://code.djangoproject.com/ticket/31094#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.65cb573cab5ffc619f25527505daa9ef%40djangoproject.com.