#12759: raw_query tests fail with psycopg1 backend
------------------------------------------+---------------------------------
Reporter: kmtracey | Owner: nobody
Status: new | Milestone: 1.2
Component: Database layer (models, ORM) | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
------------------------------------------+---------------------------------
Failure is:
{{{
======================================================================
ERROR: testAnnotations (modeltests.raw_query.tests.RawQueryTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\u\kmt\django\trunk\tests\modeltests\raw_query\tests.py", line
160, in testAnnotations
self.assertSuccessfulRawQuery(Author, query, authors,
expected_annotations)
File "D:\u\kmt\django\trunk\tests\modeltests\raw_query\tests.py", line
13, in assertSuccessfulRawQuery
results = list(model.objects.raw(query, params=params,
translations=translations))
File "d:\u\kmt\django\trunk\django\db\models\query.py", line 1331, in
__iter__
for row in self.query:
File "d:\u\kmt\django\trunk\django\db\models\sql\query.py", line 58, in
__iter__
return iter(self.cursor)
File "d:\u\kmt\django\trunk\django\db\backends\postgresql\base.py", line
79, in __iter__
return iter(self.cursor)
TypeError: 'cursor' object is not iterable
----------------------------------------------------------------------
Ran 152 tests in 40.608s
FAILED (errors=1)
}}}
(Thhis was with `--failfast` specified so tests stopped after first
failure.)
--
Ticket URL: <http://code.djangoproject.com/ticket/12759>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.