Commit 73207454 authored by Malcolm Tredinnick's avatar Malcolm Tredinnick
Browse files

Fixed #5883 -- Added __iter__ methods to the debug cursor and the postgresql backend cursor.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7259 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 50ecd753
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -56,6 +56,9 @@ class UnicodeCursorWrapper(object):
        else:
            return getattr(self.cursor, attr)

    def __iter__(self):
        return iter(self.cursor)

class DatabaseFeatures(BaseDatabaseFeatures):
    pass # This backend uses all the defaults.

+3 −0
Original line number Diff line number Diff line
@@ -41,6 +41,9 @@ class CursorDebugWrapper(object):
        else:
            return getattr(self.cursor, attr)

    def __iter__(self):
        return iter(self.cursor)

###############################################
# Converters from database (string) to Python #
###############################################