Permalink
Browse files

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
  • Loading branch information...
1 parent 962defe commit 04aa8a007e467fe5fce45873999dbccd29b52b6e @freakboy3742 freakboy3742 committed Mar 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/backends/postgresql/base.py
View
2 django/db/backends/postgresql/base.py
@@ -76,7 +76,7 @@ def __getattr__(self, attr):
return getattr(self.cursor, attr)
def __iter__(self):
- return iter(self.cursor)
+ return iter(self.cursor.fetchall())
class DatabaseFeatures(BaseDatabaseFeatures):
uses_savepoints = True

0 comments on commit 04aa8a0

Please sign in to comment.