diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-14 15:07:08 +0200 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2020-05-14 15:11:18 +0200 |
| commit | 92acf1022fb13a7a8b1ff7cdfe72c21050c1e4e7 (patch) | |
| tree | 195de65659a75b42748fe3a580357b3be3a5fd7a /django/db/backends/base/features.py | |
| parent | 49bbf6570d9f0880b836f741d79e4cdb6e061ea2 (diff) | |
[3.0.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 efa1908f662c19038a944129c81462485c4a9fe8.
Backport of 3a941230c85b2702a5e1cd97e17251ce21057efa from master
Diffstat (limited to 'django/db/backends/base/features.py')
| -rw-r--r-- | django/db/backends/base/features.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/db/backends/base/features.py b/django/db/backends/base/features.py index 89b417c7de..20996f9cf5 100644 --- a/django/db/backends/base/features.py +++ b/django/db/backends/base/features.py @@ -289,7 +289,8 @@ class BaseDatabaseFeatures: # field(s)? allows_multiple_constraints_on_same_fields = True - # Does the backend support boolean expressions in the SELECT clause? + # Does the backend support boolean expressions in SELECT and GROUP BY + # clauses? supports_boolean_expr_in_select_clause = True def __init__(self, connection): |
