Commit 04aa8a00 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #12759 -- Fixed the iterator method on psycopg1 cursors, which was...

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
parent 962defed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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