Ticket #7087: orcl_convert_values.diff
File orcl_convert_values.diff, 1.1 KB (added by , 17 years ago) |
---|
-
django/db/backends/oracle/query.py
26 26 27 27 class OracleQuery(QueryClass): 28 28 def resolve_columns(self, row, fields=()): 29 from django.db.models.fields import DateField, DateTimeField, \30 TimeField, BooleanField, NullBooleanField, DecimalField, Field31 29 index_start = len(self.extra_select.keys()) 32 30 values = [self.convert_values(v, None) for v in row[:index_start]] 33 31 for value, field in map(None, row[index_start:], fields): … … 35 33 return values 36 34 37 35 def convert_values(self, value, field): 36 from django.db.models.fields import DateField, DateTimeField, \ 37 TimeField, BooleanField, NullBooleanField, DecimalField, Field 38 38 if isinstance(value, Database.LOB): 39 39 value = value.read() 40 40 # Oracle stores empty strings as null. We need to undo this in