Re: fetchsize dynamically changeable?

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Guido Fiala <guido(dot)fiala(at)dka-gmbh(dot)de>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: fetchsize dynamically changeable?
Date: 2004-07-28 08:08:38
Message-ID: 41075F06.9080508@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Guido Fiala wrote:
> Given all the other requirements for cursors are met, is it possible to change
> the fetchsize on the fly?
>
> e.g.
> conn.createStatement(...);
> st.setFetchsize(1);
> rs=st.executeQuery(...);//we got the first record
> st.setFetchsize(10);
> rs.next(); //now we got records nr. 2-11 in memory and sit at nr. 2

That should work.

-O

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2004-07-28 09:45:02 Re: fetchsize dynamically changeable?
Previous Message Guido Fiala 2004-07-28 06:39:56 fetchsize dynamically changeable?