* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/33992#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => Simon Charette
* status: new => assigned
* stage: Accepted => Ready for checkin
Comment:
[https://github.com/django/django/pull/16037 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/33992#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"e0f14d83898ee7d0d3180eb96214d8fcdf82cc1d" e0f14d8]:
{{{
#!CommitTicketReference repository=""
revision="e0f14d83898ee7d0d3180eb96214d8fcdf82cc1d"
[4.1.x] Fixed #33992 -- Fixed queryset crash when aggregating over a group
containing Exists.
A more in-depth solution is likely to make sure that we always GROUP BY
selected annotations or revisit how we use Query.exists() in the Exists
expression but that requires extra work that isn't suitable for a
backport.
Regression in e5a92d400acb4ca6a8e1375d1ab8121f2c7220be.
Thanks Fernando Flores Villaça for the report.
Backport of 32536b1324e98768dd892980408a8c6b26c23fd9 from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33992#comment:5>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"32536b1324e98768dd892980408a8c6b26c23fd9" 32536b1]:
{{{
#!CommitTicketReference repository=""
revision="32536b1324e98768dd892980408a8c6b26c23fd9"
Fixed #33992 -- Fixed queryset crash when aggregating over a group
containing Exists.
A more in-depth solution is likely to make sure that we always GROUP BY
selected annotations or revisit how we use Query.exists() in the Exists
expression but that requires extra work that isn't suitable for a
backport.
Regression in e5a92d400acb4ca6a8e1375d1ab8121f2c7220be.
Thanks Fernando Flores Villaça for the report.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33992#comment:6>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"3d734c09ff0138441dfe0a59010435871d17950f" 3d734c0]:
{{{
#!CommitTicketReference repository=""
revision="3d734c09ff0138441dfe0a59010435871d17950f"
Refs #33992 -- Refactored subquery grouping logic.
This required moving the combined queries slicing logic to the compiler
in order to allow Query.exists() to be called at expression resolving
time.
It allowed for Query.exists() to be called at Exists() initialization
time and thus ensured that get_group_by_cols() was operating on the
terminal representation of the query that only has a single column
selected.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33992#comment:7>