Fixed DatabaseFeatures.supports_primitives_in_json_field on Oracle 21c+.

This commit is contained in:
Mariusz Felisiak 2023-08-10 08:59:29 +02:00 committed by GitHub
parent e69a9920e2
commit 59f13ce545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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 = {
@ -157,3 +156,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
return False
raise
return True
@cached_property
def supports_primitives_in_json_field(self):
return self.connection.oracle_version >= (21,)