Kaydet (Commit) 8aefd303 authored tarafından Florian Apolloner's avatar Florian Apolloner

Fixed BinaryField support on Oracle.

üst 360217fc
...@@ -672,6 +672,8 @@ class OracleParam(object): ...@@ -672,6 +672,8 @@ class OracleParam(object):
param = "0" param = "0"
if hasattr(param, 'bind_parameter'): if hasattr(param, 'bind_parameter'):
self.force_bytes = param.bind_parameter(cursor) self.force_bytes = param.bind_parameter(cursor)
elif isinstance(param, six.memoryview):
self.force_bytes = param
else: else:
self.force_bytes = convert_unicode(param, cursor.charset, self.force_bytes = convert_unicode(param, cursor.charset,
strings_only) strings_only)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment