Permalink
Browse files

Fixed extra_select with DateQuery in Oracle

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8804 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent cf7a078 commit 5f31e9bd33269484689d5d5f078a979f71edcade @ikelly ikelly committed Sep 1, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/models/sql/subqueries.py
@@ -377,7 +377,7 @@ def results_iter(self):
for row in rows:
date = row[offset]
if resolve_columns:
- date = self.resolve_columns([date], fields)[0]
+ date = self.resolve_columns(row, fields)[offset]
elif needs_string_cast:
date = typecast_timestamp(str(date))
yield date

0 comments on commit 5f31e9b

Please sign in to comment.