Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed BinaryField support on Oracle.

  • Loading branch information...
commit 8aefd30379eba9aa7e5afcc69cc352adf0d23489 1 parent 360217f
@apollo13 apollo13 authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.