summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2020-05-14 00:14:48 -0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-05-14 10:26:05 +0200
commit3913acdb29d09109ec82ce789b592e6281aa7be9 (patch)
tree1e7282e191cf1feadc3ff9d82e01ecf0e061de95 /docs
parent8cb87a3f7c413b9943a5a73e156716067267b182 (diff)
[3.1.x] Fixed #31568 -- Fixed alias reference when aggregating over multiple subqueries.
691def10a0197d83d2d108bd9043b0916d0f09b4 made all Subquery() instances equal to each other which broke aggregation subquery pushdown which relied on object equality to determine which alias it should select. Subquery.__eq__() will be fixed in an another commit but Query.rewrite_cols() should haved used object identity from the start. Refs #30727, #30188. Thanks Makina Corpus for the report. Backport of adfbf653dc1c1d0e0dacc4ed46602d22ba28b004 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/3.0.7.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/releases/3.0.7.txt b/docs/releases/3.0.7.txt
index 5457e59b3d..0f1188724a 100644
--- a/docs/releases/3.0.7.txt
+++ b/docs/releases/3.0.7.txt
@@ -15,3 +15,6 @@ Bugfixes
* Fixed a regression in Django 3.0 where ``QuerySet.values()`` and
``values_list()`` crashed if a queryset contained an aggregation and a
subquery annotation (:ticket:`31566`).
+
+* Fixed a regression in Django 3.0 where aggregates used wrong annotations when
+ a queryset has multiple subqueries annotations (:ticket:`31568`).