#31109: Multiple annotation with Subquery generates wrong SQL.
-------------------------------------+-------------------------------------
     Reporter:  Thierry Bastian      |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  3.0
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"720de4d0441fcfdb543051389c70efbe66ed962a" 720de4d]:
 {{{
 #!CommitTicketReference repository=""
 revision="720de4d0441fcfdb543051389c70efbe66ed962a"
 Fixed #31109 -- Disabled grouping by aliases on QuerySet.exists().

 Clearing the SELECT clause in Query.has_results was orphaning GROUP BY
 references to it.

 Thanks Thierry Bastian for the report and Baptiste Mispelon for the
 bisect.

 Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31109#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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.703113c9153a948dd8b068d5d9e62516%40djangoproject.com.

Reply via email to