diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-03-17 14:15:15 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-03-17 14:15:15 +0000 |
| commit | 732074541a17cde1d6d634007949d8a8c83cdc1a (patch) | |
| tree | 6671b8884acad62ee25a60acbb399caa6856b520 /django/db/backends/postgresql/base.py | |
| parent | 50ecd7537909915bc5faed644817a58c0a1f765e (diff) | |
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
Diffstat (limited to 'django/db/backends/postgresql/base.py')
| -rw-r--r-- | django/db/backends/postgresql/base.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py index c8b87c2dd1..1dfe34aceb 100644 --- a/django/db/backends/postgresql/base.py +++ b/django/db/backends/postgresql/base.py @@ -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. |
