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)