From 8aefd30379eba9aa7e5afcc69cc352adf0d23489 Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Sat, 9 Mar 2013 23:39:14 +0100 Subject: [PATCH] Fixed BinaryField support on Oracle. --- django/db/backends/oracle/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py index a56813e28e..60ee1ba632 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -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)