mirror of
https://github.com/Hopiu/django.git
synced 2026-03-27 03:10:23 +00:00
Fixed BinaryField support on Oracle.
This commit is contained in:
parent
360217fc87
commit
8aefd30379
1 changed files with 2 additions and 0 deletions
|
|
@ -672,6 +672,8 @@ class OracleParam(object):
|
|||
param = "0"
|
||||
if hasattr(param, 'bind_parameter'):
|
||||
self.force_bytes = param.bind_parameter(cursor)
|
||||
elif isinstance(param, six.memoryview):
|
||||
self.force_bytes = param
|
||||
else:
|
||||
self.force_bytes = convert_unicode(param, cursor.charset,
|
||||
strings_only)
|
||||
|
|
|
|||
Loading…
Reference in a new issue