From 5f31e9bd33269484689d5d5f078a979f71edcade Mon Sep 17 00:00:00 2001 From: Ian Kelly Date: Mon, 1 Sep 2008 18:45:49 +0000 Subject: [PATCH] Fixed extra_select with DateQuery in Oracle git-svn-id: http://code.djangoproject.com/svn/django/trunk@8804 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/sql/subqueries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/sql/subqueries.py b/django/db/models/sql/subqueries.py index cea2a58d39..1800d48fc3 100644 --- a/django/db/models/sql/subqueries.py +++ b/django/db/models/sql/subqueries.py @@ -377,7 +377,7 @@ class DateQuery(Query): 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