summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/base.py
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-03-25 12:36:21 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-03-25 12:36:21 +0000
commit04aa8a007e467fe5fce45873999dbccd29b52b6e (patch)
treec5c826abb54680c976a173a88aeb23ca2cd1e6a5 /django/db/backends/postgresql/base.py
parent962defed0adab6144464337a9cad44a4323ae3de (diff)
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
Diffstat (limited to 'django/db/backends/postgresql/base.py')
-rw-r--r--django/db/backends/postgresql/base.py2
1 files changed, 1 insertions, 1 deletions
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