Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 04aa8a007e467fe5fce45873999dbccd29b52b6e 1 parent 962defe
Russell Keith-Magee authored March 25, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/db/backends/postgresql/base.py
2  django/db/backends/postgresql/base.py
@@ -76,7 +76,7 @@ def __getattr__(self, attr):
76 76
             return getattr(self.cursor, attr)
77 77
 
78 78
     def __iter__(self):
79  
-        return iter(self.cursor)
  79
+        return iter(self.cursor.fetchall())
80 80
 
81 81
 class DatabaseFeatures(BaseDatabaseFeatures):
82 82
     uses_savepoints = True

0 notes on commit 04aa8a0

Please sign in to comment.
Something went wrong with that request. Please try again.