Fixed #10224: Don't attempt to decode binary string data in the Oracle backend.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9821 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Ian Kelly 2009-02-11 00:15:23 +00:00
parent f0a7470e40
commit e9af96de1e
1 changed files with 2 additions and 1 deletions

View File

@ -450,7 +450,8 @@ class FormatStylePlaceholderCursor(object):
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)