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
This commit is contained in:
Malcolm Tredinnick 2008-03-17 14:15:15 +00:00
parent 50ecd75379
commit 732074541a
2 changed files with 6 additions and 0 deletions

View File

@ -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.

View File

@ -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 #
###############################################