1
0
mirror of https://github.com/django/django.git synced 2024-12-24 10:05:46 +00:00

Fixed BinaryField support on Oracle.

This commit is contained in:
Florian Apolloner 2013-03-09 23:39:14 +01:00
parent 360217fc87
commit 8aefd30379

View File

@ -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)