From: Matt Chambers <chambers@imageworks.com>
To: Koth, Christian (DWBI) <Christian.Koth@smiths-heimann.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: scollable result sets
Date: Wed, 06 Sep 2006 09:13:43 -0700
Message-ID: <44FEF3B7.7060507@imageworks.com> (raw)
In-Reply-To: <F5F602C218633C419C7BCA6CDDC6E90A02653EA3@COSSMGMBX04.EMAIL.CORP.TLD>
References: <F5F602C218633C419C7BCA6CDDC6E90A02653EA3@COSSMGMBX04.EMAIL.CORP.TLD>
I read someplace that the CVS version may support it. Unfortunately,
gborg seems to be down for the past day or so. Looking through the
code, I see things like:
while (x_rset.next()) {
x_rset.previous()
function_that_calls_next(x_rset)
}
Is there a better way to do this? With result pointers from other
languages, like perl, python, php, I know the size of the result so I
can choose the type of loop I want to use. Is there a better way to
loop through a result set and have a another function call next?
Matt
Koth, Christian (DWBI) wrote:
> Matt,
> no they are not broken.
> But AFAIK a ScrollableResultSet with Postgres JDBC supports forward
> only. Try again with different settings and of course don't call
> previous().
> If you need scroll back functionality you could use cursors.
> Christian
>
> ------------------------------------------------------------------------
> *Von:* pgsql-jdbc-owner@postgresql.org
> [mailto:pgsql-jdbc-owner@postgresql.org] *Im Auftrag von *Matt
> Chambers
> *Gesendet:* Dienstag, 5. September 2006 23:16
> *An:* pgsql-jdbc@postgresql.org
> *Betreff:* [JDBC] scollable result sets
>
> Are they broken in 8.1? I no matter what I do Postgresl throws an
> exception with calls to functions like previous() and last().
> x_conn.prepareCall ( os_query, ResultSet.TYPE_SCROLL_INSENSITIVE,
> ResultSet.CONCUR_READ_ONLY );
> --
> *Matt Chambers <chambers@imageworks.com>*
> *Sony Pictures Imageworks*
> Software Engineer
>
>
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: chambers@imageworks.com, Christian.Koth@smiths-heimann.com
Subject: Re: scollable result sets
In-Reply-To: <44FEF3B7.7060507@imageworks.com>
References: <F5F602C218633C419C7BCA6CDDC6E90A02653EA3@COSSMGMBX04.EMAIL.CORP.TLD> <44FEF3B7.7060507@imageworks.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox