Author: ikelly
Date: 2009-02-10 18:15:23 -0600 (Tue, 10 Feb 2009)
New Revision: 9821

Modified:
   django/trunk/django/db/backends/oracle/base.py
Log:
Fixed #10224: Don't attempt to decode binary string data in the Oracle backend.

Modified: django/trunk/django/db/backends/oracle/base.py
===================================================================
--- django/trunk/django/db/backends/oracle/base.py      2009-02-08 11:14:56 UTC 
(rev 9820)
+++ django/trunk/django/db/backends/oracle/base.py      2009-02-11 00:15:23 UTC 
(rev 9821)
@@ -450,7 +450,8 @@
                     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)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to