summaryrefslogtreecommitdiff
path: root/django/db/models/sql/compiler.py
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:16 +0200
commit49bbf6570d9f0880b836f741d79e4cdb6e061ea2 (patch)
tree105f896b7704dd50e1be44cd4049179c904e9b1d /django/db/models/sql/compiler.py
parentafceb2241ba84dfafe59de326cdc9c01963ddefb (diff)
[3.0.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 'django/db/models/sql/compiler.py')
0 files changed, 0 insertions, 0 deletions