Fixed #23434 -- Coerce Oracle bool params to int

This commit is contained in:
Josh Smeaton 2014-09-07 12:26:05 +10:00 committed by Tim Graham
parent 60c38c1a4e
commit 638d1393ee
1 changed files with 2 additions and 2 deletions

View File

@ -772,9 +772,9 @@ class OracleParam(object):
# Oracle doesn't recognize True and False correctly in Python 3.
# The conversion done below works both in 2 and 3.
if param is True:
param = "1"
param = 1
elif param is False:
param = "0"
param = 0
if hasattr(param, 'bind_parameter'):
self.force_bytes = param.bind_parameter(cursor)
elif isinstance(param, Database.Binary):