summaryrefslogtreecommitdiff
path: root/django/db/backends/oracle/features.py
diff options
context:
space:
mode:
authorArtur Beltsov <artur1998g@gmail.com>2020-11-08 12:52:34 +0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-12-02 09:30:50 +0100
commit48b4bae983a1f9a73624fe62ef5bd1130b0dba39 (patch)
treefb4759d8fcaadd48f45c08cf28f080f52690a356 /django/db/backends/oracle/features.py
parentadb40d217ec57ade46b1394cfbf3c513dc669445 (diff)
downloaddjango-48b4bae983a1f9a73624fe62ef5bd1130b0dba39.tar.gz
Fixed #32179 -- Added JSONObject database function.
Diffstat (limited to 'django/db/backends/oracle/features.py')
-rw-r--r--django/db/backends/oracle/features.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/django/db/backends/oracle/features.py b/django/db/backends/oracle/features.py
index 63d825f68a..e66c5da09f 100644
--- a/django/db/backends/oracle/features.py
+++ b/django/db/backends/oracle/features.py
@@ -94,3 +94,8 @@ class DatabaseFeatures(BaseDatabaseFeatures):
return False
raise
return True
+
+ @cached_property
+ def has_json_object_function(self):
+ # Oracle < 18 supports JSON_OBJECT() but it's not fully functional.
+ return self.connection.oracle_version >= (18,)