Ticket #12429: t12429-r12905.diff

File t12429-r12905.diff, 615 bytes (added by russellm, 5 years ago)

Possible fix for Oracle problems in raw_query

  • 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
Back to Top