Author: mboersma
Date: 2009-05-11 12:29:08 -0500 (Mon, 11 May 2009)
New Revision: 10742

Modified:
   django/trunk/django/db/backends/oracle/query.py
Log:
Fixed #11051 -- Oracle passes null_fk unit tests in trunk again.  Thanks, 
JirkaV.


Modified: django/trunk/django/db/backends/oracle/query.py
===================================================================
--- django/trunk/django/db/backends/oracle/query.py     2009-05-11 16:13:29 UTC 
(rev 10741)
+++ django/trunk/django/db/backends/oracle/query.py     2009-05-11 17:29:08 UTC 
(rev 10742)
@@ -51,14 +51,14 @@
                       for v in row[rn_offset:index_start]]
             for value, field in map(None, row[index_start:], fields):
                 values.append(self.convert_values(value, field))
-            return values
+            return tuple(values)
 
         def convert_values(self, value, field):
             if isinstance(value, Database.LOB):
                 value = value.read()
                 if field and field.get_internal_type() == 'TextField':
                     value = force_unicode(value)
-                    
+
             # Oracle stores empty strings as null. We need to undo this in
             # order to adhere to the Django convention of using the empty
             # string instead of null, but only if the field accepts the
@@ -148,4 +148,3 @@
     klass = query_class(QueryClass, cx_Oracle)
     return klass.__new__(klass)
 unpickle_query_class.__safe_for_unpickling__ = True
-


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

Reply via email to