Re: Driver JDBC3 build 213 for postgreSQL 7.4 - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Driver JDBC3 build 213 for postgreSQL 7.4
Date
Msg-id Pine.BSO.4.56.0405211212220.29942@leary.csoft.net
Whole thread Raw
In response to Driver JDBC3 build 213 for postgreSQL 7.4  (Alban Mathieu <alban@alliancegraphique.ch>)
List pgsql-jdbc
On Wed, 19 May 2004, Alban Mathieu wrote:

> I got some troubles with the jdbc driver build 213 for postgreSQL 7.4
> The method ResultSet.getFetchSize() return always 0
>
> I use now the driver for postgreSQL 7.3 and evrything is working fine...
>

A lot of people have been using getFetchSize to try and determine the
retrieved ResultSet size which happened to be true in <= 7.3 drivers, but
this is not what the method is actually supposed to do.  The 7.4 driver
has cursor based fetching which uses the fetch size for it's intended
purpose.  Please consult the javadoc and find a more compliant way of
doing what you want.

Kris Jurka


pgsql-jdbc by date:

Previous
From: Tom Lane
Date:
Subject: Re: Queries with large ResultSets
Next
From: Kris Jurka
Date:
Subject: Re: patch: streaming of bytea parameter values