Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.0.X] Fixed #10224: Don't attempt to decode binary string data in t…

…he Oracle backend. Backport of [9821] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9822 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c2838753894cbed7ee73c0fa85efa6b87c605598 1 parent b0fd405
@ikelly ikelly authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/db/backends/oracle/base.py
View
3  django/db/backends/oracle/base.py
@@ -444,7 +444,8 @@ def _rowfactory(self, row):
value = Decimal(value)
else:
value = int(value)
- else:
+ elif desc[1] in (Database.STRING, Database.FIXED_CHAR,
+ Database.LONG_STRING):
value = to_unicode(value)
casted.append(value)
return tuple(casted)
Please sign in to comment.
Something went wrong with that request. Please try again.