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: 4E98467D.1050604@dndg.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

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

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message thomas veymont 2011-10-14 15:51:42 Re: using server side cursor
Previous Message Federico Di Gregorio 2011-10-14 14:24:33 Re: using server side cursor