Ticket #7087: qsrf_dates_oracle.diff

File qsrf_dates_oracle.diff, 735 bytes (added by Erin Kelly, 17 years ago)
  • django/db/models/sql/subqueries.py

     
    330330            from django.db.backends.util import typecast_timestamp
    331331            needs_string_cast = self.connection.features.needs_datetime_string_cast
    332332
     333        index_start = len(self.extra_select)
    333334        for rows in self.execute_sql(MULTI):
    334335            for row in rows:
    335                 date = row[0]
     336                date = row[index_start]
    336337                if resolve_columns:
    337338                    date = self.resolve_columns([date], fields)[0]
    338339                elif needs_string_cast:
Back to Top