#31150: Subquery annotations are omitted in group by query section if multiple
annotation are declared
-------------------------------------+-------------------------------------
     Reporter:  Johannes Hoppe       |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    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
-------------------------------------+-------------------------------------

Comment (by Simon Charette):

 The generated query effectively changed but the returned resultset should
 be the same since the subquery is a function of the outer query's primary
 key and the query is grouped by the outer query primary key.

 I don't think asserting against the generated query string is a proper
 test case; the generated SQL will change between Django versions but the
 returned result set should be the same.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31150#comment:7>
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.0318bd4d2d08eb73f6c99c7e2d700361%40djangoproject.com.

Reply via email to