On Thu, Mar 27, 2008 at 4:18 PM, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
>  Please note that psycopg2's cursor.execute() doesn't really respect
>  DB-API either, in the sense that .fetchone does actually fetch the
>  entire resultset into the python process unless the cursor is named,
>  i.e. connection.cursor is called with a name parameter.

I was reminded of this when I read Malcolm's blog post yesterday.  One
correction to what you wrote: using an unnamed psycopg2 cursor, it is
cursor.execute() and not .fetchXXX that will cause fetching  the
resultset into the python process.

See for example
<http://lists.initd.org/pipermail/psycopg/2007-January/005251.html>
for more information.


Arien

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to