Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #10224: Don't attempt to decode binary string data in the Oracl…

…e backend.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9821 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e9af96de1edac106ad30994865a0ee2233bed984 1 parent f0a7470
Ian Kelly ikelly authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/db/backends/oracle/base.py
3  django/db/backends/oracle/base.py
View
@@ -450,7 +450,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.