#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 -------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak <felisiak.mariusz@…>): In [changeset:"7b065c41e406fb22d39d1f7b4cfed96bf06dc591" 7b065c41]: {{{ #!CommitTicketReference repository="" revision="7b065c41e406fb22d39d1f7b4cfed96bf06dc591" [3.0.x] 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. Backport of 720de4d0441fcfdb543051389c70efbe66ed962a from master }}} -- Ticket URL: <https://code.djangoproject.com/ticket/31109#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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.8f93f244c5f639f99c4a4b2e502f9779%40djangoproject.com.