Ticket #7087: orcl_revert_resolve_columns.diff
File orcl_revert_resolve_columns.diff, 878 bytes (added by , 17 years ago) |
---|
-
django/db/backends/oracle/query.py
28 28 def resolve_columns(self, row, fields=()): 29 29 from django.db.models.fields import DateField, DateTimeField, \ 30 30 TimeField, BooleanField, NullBooleanField, DecimalField, Field 31 index_start = len(self.extra_select.keys()) 32 values = list(row[:index_start]) 33 for value, field in map(None, row[index_start:], fields): 31 values = [] 32 for value, field in map(None, row, fields): 34 33 if isinstance(value, Database.LOB): 35 34 value = value.read() 36 35 # Oracle stores empty strings as null. We need to undo this in