#5883: CursorDebugWrapper should implement __iter__
----------------------+-----------------------------------------------------
Reporter: eibaan | Owner: nobody
Status: new | Component: Database wrapper
Version: SVN | Resolution:
Keywords: | Stage: Unreviewed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
----------------------+-----------------------------------------------------
Changes (by arien <[EMAIL PROTECTED]>):
* needs_better_patch: => 0
* has_patch: 0 => 1
* needs_tests: => 0
* needs_docs: => 0
Comment:
The logical thing to do would be to make '''all''' cursors iterable.
The postgresql backend uses a
[http://code.djangoproject.com/browser/django/trunk/django/db/backends/postgresql/base.py#L19
UnicodeCursorWrapper] which isn't iterable around a psycopg1 cursor; all
other backends have iterable cursors.
The patch fixes both issues.
--
Ticket URL: <http://code.djangoproject.com/ticket/5883#comment:1>
Django Code <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
-~----------~----~----~----~------~----~------~--~---