Fixed #33817 -- Added support for python-oracledb and deprecated cx_Oracle.

This commit is contained in:
Jingbei Li 2022-07-12 14:22:40 +08:00 committed by Mariusz Felisiak
parent 59f13ce545
commit 9946f0b0d9
17 changed files with 80 additions and 50 deletions

View file

@ -1036,7 +1036,7 @@ class Value(SQLiteNumericMixin, Expression):
if hasattr(output_field, "get_placeholder"):
return output_field.get_placeholder(val, compiler, connection), [val]
if val is None:
# cx_Oracle does not always convert None to the appropriate
# oracledb does not always convert None to the appropriate
# NULL type (like in case expressions using numbers), so we
# use a literal SQL NULL
return "NULL", []