Ticket #12429: t12429-r12905.2.diff

File t12429-r12905.2.diff, 1.1 KB (added by Russell Keith-Magee, 14 years ago)

Second attempt at an Oracle fix

  • django/db/models/sql/query.py

    diff -r 517ad2df6ce8 django/db/models/sql/query.py
    a b  
    3737        self.using = using
    3838        self.cursor = None
    3939
     40        # Mirror some properties of a normal query so that
     41        # the compiler can be used to process results.
     42        self.low_mark, self.high_mark = 0, None  # Used for offset/limit
     43        self.extra_select = {}
     44        self.aggregate_select = {}
     45
    4046    def clone(self, using):
    4147        return RawQuery(self.sql, using, params=self.params)
    4248
     49    def convert_values(self, value, field, connection):
     50        """Convert the database-returned value into a type that is consistent
     51        across database backends.
     52
     53        By default, this defers to the underlying backend operations, but
     54        it can be overridden by Query classes for specific backends.
     55        """
     56        return connection.ops.convert_values(value, field)
     57
    4358    def get_columns(self):
    4459        if self.cursor is None:
    4560            self._execute_query()
Back to Top