From 04aa8a007e467fe5fce45873999dbccd29b52b6e Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 25 Mar 2010 12:36:21 +0000 Subject: [PATCH] Fixed #12759 -- Fixed the iterator method on psycopg1 cursors, which was preventing the raw_query tests from passing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12845 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/backends/postgresql/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py index 24a4422b12..ef39fa9867 100644 --- a/django/db/backends/postgresql/base.py +++ b/django/db/backends/postgresql/base.py @@ -76,7 +76,7 @@ class UnicodeCursorWrapper(object): return getattr(self.cursor, attr) def __iter__(self): - return iter(self.cursor) + return iter(self.cursor.fetchall()) class DatabaseFeatures(BaseDatabaseFeatures): uses_savepoints = True