mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
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 e5a92d400a.
Thanks Fernando Flores Villaça for the report.
This commit is contained in:
committed by
Mariusz Felisiak
parent
a2e580acf6
commit
32536b1324
@@ -11,3 +11,7 @@ Bugfixes
|
||||
|
||||
* Fixed a regression in Django 4.1 that caused a migration crash on PostgreSQL
|
||||
when adding a model with ``ExclusionConstraint`` (:ticket:`33982`).
|
||||
|
||||
* Fixed a regression in Django 4.1 that caused aggregation over a queryset that
|
||||
contained an ``Exists`` annotation to crash due to too many selected columns
|
||||
(:ticket:`33992`).
|
||||
|
||||
Reference in New Issue
Block a user