Skip site navigation (1) Skip section navigation (2)

Re: using server side cursor

From: Federico Di Gregorio <fog(at)dndg(dot)it>
To: psycopg(at)postgresql(dot)org
Subject: Re: using server side cursor
Date: 2011-10-14 14:26:05
Message-ID: (view raw, whole thread or download thread mbox)
Lists: psycopg
On 14/10/11 16:24, Federico Di Gregorio wrote:
> We can add a new parameter (existing=True?) to cursor(); to be used only
> when the cursor already exists with the following behaviour:
> 1) execute() calls now result in an exception; and
> 2) you're guaranteed that fetchXXX() will wok as expected.
> If you *don't* pass existing=True trying to fetch from a named cursor
> without first calling execute() can result in an exception too. But
> maybe this is too much...

Mm.. ignore this, it's stupid. :/


Federico Di Gregorio                                       fog(at)initd(dot)org
             Quis custodiet ipsos custodes? -- Juvenal, Satires, VI, 347

In response to


psycopg by date

Next:From: thomas veymontDate: 2011-10-14 15:51:42
Subject: Re: using server side cursor
Previous:From: Federico Di GregorioDate: 2011-10-14 14:24:33
Subject: Re: using server side cursor

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group