Ticket #7087: orcl_convert_values.diff

File orcl_convert_values.diff, 1.1 KB (added by jbronn, 17 years ago)

Missing import fix for convert_values.

  • django/db/backends/oracle/query.py

     
    2626
    2727    class OracleQuery(QueryClass):
    2828        def resolve_columns(self, row, fields=()):
    29             from django.db.models.fields import DateField, DateTimeField, \
    30                  TimeField, BooleanField, NullBooleanField, DecimalField, Field
    3129            index_start = len(self.extra_select.keys())
    3230            values = [self.convert_values(v, None) for v in row[:index_start]]
    3331            for value, field in map(None, row[index_start:], fields):
     
    3533            return values
    3634
    3735        def convert_values(self, value, field):
     36            from django.db.models.fields import DateField, DateTimeField, \
     37                 TimeField, BooleanField, NullBooleanField, DecimalField, Field
    3838            if isinstance(value, Database.LOB):
    3939                value = value.read()
    4040            # Oracle stores empty strings as null. We need to undo this in
Back to Top