diff options
| author | Tim Graham <timograham@gmail.com> | 2020-09-07 15:45:56 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-10-22 18:16:58 +0200 |
| commit | 755dbf39fcdc491fe9b588358303e259c7750be4 (patch) | |
| tree | 9b200ac7a26b1b0dcb065459e0eeab0ba48663ea /django | |
| parent | ad11f5b8c9cbfdb763e08c83170694abc0c5fc1e (diff) | |
Replaced @no_oracle skips with DatabaseFeatures.allows_group_by_lob.
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/base/features.py | 2 | ||||
| -rw-r--r-- | django/db/backends/oracle/features.py | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/django/db/backends/base/features.py b/django/db/backends/base/features.py index 0b315aac02..03c97e6691 100644 --- a/django/db/backends/base/features.py +++ b/django/db/backends/base/features.py @@ -4,6 +4,8 @@ from django.utils.functional import cached_property class BaseDatabaseFeatures: gis_enabled = False + # Oracle can't group by LOB (large object) data types. + allows_group_by_lob = True allows_group_by_pk = False allows_group_by_selected_pks = False empty_fetchmany_value = [] diff --git a/django/db/backends/oracle/features.py b/django/db/backends/oracle/features.py index b0eebe5008..63d825f68a 100644 --- a/django/db/backends/oracle/features.py +++ b/django/db/backends/oracle/features.py @@ -4,6 +4,9 @@ from django.utils.functional import cached_property class DatabaseFeatures(BaseDatabaseFeatures): + # Oracle crashes with "ORA-00932: inconsistent datatypes: expected - got + # BLOB" when grouping by LOBs (#24096). + allows_group_by_lob = False interprets_empty_strings_as_nulls = True has_select_for_update = True has_select_for_update_nowait = True |
