diff options
author | Tim Graham <timograham@gmail.com> | 2020-05-18 02:12:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 08:12:20 +0200 |
commit | f59a2b730685fc62c5cb44101f54faf8921d9bc7 (patch) | |
tree | 3e9bc28ef38bcdda752c00a6165e62f3a6c8b874 /django/db/backends/postgresql/features.py | |
parent | d00e034a286771830e58356de3511c99ca023d26 (diff) | |
download | django-f59a2b730685fc62c5cb44101f54faf8921d9bc7.tar.gz |
Refs #12990 -- Added DatabaseFeatures.has_json_operators.
CockroachDB also has them.
Diffstat (limited to 'django/db/backends/postgresql/features.py')
-rw-r--r-- | django/db/backends/postgresql/features.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/features.py b/django/db/backends/postgresql/features.py index 80cee8e8da..a4ba0b99fc 100644 --- a/django/db/backends/postgresql/features.py +++ b/django/db/backends/postgresql/features.py @@ -58,6 +58,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): supported_explain_formats = {'JSON', 'TEXT', 'XML', 'YAML'} validates_explain_options = False # A query will error on invalid options. supports_deferrable_unique_constraints = True + has_json_operators = True @cached_property def is_postgresql_10(self): |