Skip to content

Commit

Permalink
HACK: Attempt to fix for Oracle.
Browse files Browse the repository at this point in the history
  • Loading branch information
ngnpope committed Jul 17, 2021
1 parent c5d1b53 commit 12b6c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/db/backends/oracle/operations.py
Expand Up @@ -184,7 +184,7 @@ def time_trunc_sql(self, lookup_type, field_name, tzname=None):
def get_db_converters(self, expression):
converters = super().get_db_converters(expression)
internal_type = expression.output_field.get_internal_type()
if internal_type in ['JSONField', 'TextField']:
if internal_type in ['CharField', 'JSONField', 'TextField']:
converters.append(self.convert_textfield_value)
elif internal_type == 'BinaryField':
converters.append(self.convert_binaryfield_value)
Expand Down

0 comments on commit 12b6c2a

Please sign in to comment.