Permalink
Browse files

Fixed BinaryField support on Oracle.

  • Loading branch information...
1 parent 360217f commit 8aefd30379eba9aa7e5afcc69cc352adf0d23489 @apollo13 apollo13 committed Mar 9, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 django/db/backends/oracle/base.py
View
2 django/db/backends/oracle/base.py
@@ -672,6 +672,8 @@ def __init__(self, param, cursor, strings_only=False):
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)

0 comments on commit 8aefd30

Please sign in to comment.