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: 4E98467D.1050604@dndg.it (view raw or flat)
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

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-2014 The PostgreSQL Global Development Group