1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

[3.1.x] Fixed #31584 -- Fixed crash when chaining values()/values_list() after Exists() annotation and aggregation on Oracle.

Oracle requires the EXISTS expression to be wrapped in a CASE WHEN in
the GROUP BY clause.

Regression in efa1908f66.
Backport of 3a941230c8 from master
This commit is contained in:
Mariusz Felisiak
2020-05-14 15:07:08 +02:00
committed by Carlton Gibson
parent bebb7d4d7e
commit b46b0f80e8
5 changed files with 9 additions and 5 deletions

View File

@@ -18,3 +18,7 @@ Bugfixes
* Fixed a regression in Django 3.0 where aggregates used wrong annotations when
a queryset has multiple subqueries annotations (:ticket:`31568`).
* Fixed a regression in Django 3.0 where ``QuerySet.values()`` and
``values_list()`` crashed if a queryset contained an aggregation and an
``Exists()`` annotation on Oracle (:ticket:`31584`).