mirror of
https://github.com/django/django.git
synced 2024-12-25 18:46:22 +00:00
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
This commit is contained in:
parent
962defed0a
commit
04aa8a007e
@ -76,7 +76,7 @@ class UnicodeCursorWrapper(object):
|
|||||||
return getattr(self.cursor, attr)
|
return getattr(self.cursor, attr)
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
return iter(self.cursor)
|
return iter(self.cursor.fetchall())
|
||||||
|
|
||||||
class DatabaseFeatures(BaseDatabaseFeatures):
|
class DatabaseFeatures(BaseDatabaseFeatures):
|
||||||
uses_savepoints = True
|
uses_savepoints = True
|
||||||
|
Loading…
Reference in New Issue
Block a user