Kaydet (Commit) 73207454 authored tarafından Malcolm Tredinnick's avatar Malcolm Tredinnick

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
üst 50ecd753
......@@ -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.
......
......@@ -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 #
###############################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment