Skip to content

Commit

Permalink
Fixed DatabaseFeatures.supports_primitives_in_json_field on Oracle 21c+.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixxm authored Aug 10, 2023
1 parent e69a992 commit 59f13ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion django/db/backends/oracle/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
allows_multiple_constraints_on_same_fields = False
supports_boolean_expr_in_select_clause = False
supports_comparing_boolean_expr = False
supports_primitives_in_json_field = False
supports_json_field_contains = False
supports_collation_on_textfield = False
test_collations = {
Expand Down Expand Up @@ -157,3 +156,7 @@ def supports_collation_on_charfield(self):
return False
raise
return True

@cached_property
def supports_primitives_in_json_field(self):
return self.connection.oracle_version >= (21,)

0 comments on commit 59f13ce

Please sign in to comment.