#30158: Subquery Expressions Incorrectly Added to Group by
-------------------------------------+-------------------------------------
Reporter: JonnyWaffles | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: subquery, group_by | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):
* has_patch: 0 => 1
* version: 2.1 => master
* type: Uncategorized => Bug
* needs_tests: 0 => 1
* stage: Unreviewed => Accepted
Comment:
I just ran the full suite with the `get_group_by_cols` override detailed
and it worked fine, this case is simply untested.
Jonny, would you be interested in submitting a Github PR with the changes
suggested above with the addition of a regression test to make sure the
`GROUP BY` doesn't occur? I'd be happy to offer assistance like I did for
#30099 in https://github.com/django/django/pull/10846.
--
Ticket URL: <https://code.djangoproject.com/ticket/30158#comment:6>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/070.23d7fadbaf832fbec36cd6c4cfdc2b9b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.