Re: using postgresql-8.0-311.jdbc2.jar - Mailing list pgsql-jdbc

From sarves
Subject Re: using postgresql-8.0-311.jdbc2.jar
Date
Msg-id 42C3791D.8060602@midascomm.com
Whole thread Raw
In response to Re: using postgresql-8.0-311.jdbc2.jar  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc
Dear Oliver & Roland,

          You guys are rite. I got rid fo the dependency on getFetchSize() and my program works fine now. Thanks for the timely help.

sarvesh

Oliver Jowett wrote:
Roland Walter wrote:
 
As far as I know, getFetchSize() will return 0 in all cases.
It is not possible to use this for getting the count of
selected rows. Remove the if (num>0) below.   
Yes, this'll be the cause: older driver versions incorrectly returned
the resultset size from getFetchSize(), but newer drivers follow the
spec and return whatever you set via setFetchSize(), default 0.

-O
 

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: XA support
Next
From: Heikki Linnakangas
Date:
Subject: Re: XA support