#26045: Annotate with conditional aggregation includes non-relevant fields in 
GROUP
BY clause
-------------------------------------+-------------------------------------
     Reporter:  mark88               |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  1.8
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  needsinfo
     Keywords:  orm, sql,            |             Triage Stage:
  annotation                         |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by charettes):

 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 Mark,

 I tried a building a queryset similar to yours locally and unrelated
 fields were excluded from the `GROUP BY` clause on Django 1.9+ using
 PostgreSQL.

 If it's not the case for your query please reopen this ticket so we can
 investigate what can be done.

 Resolving as ''needsinfo'' until feedback is provided.

--
Ticket URL: <https://code.djangoproject.com/ticket/26045#comment:3>
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/064.82f5095310c8fb0baeff76199ab74512%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to