Re: using postgresql-8.0-311.jdbc2.jar

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Roland Walter <rwa(at)mosaic-ag(dot)com>
Cc: sarves <sharvesh(at)midascomm(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: using postgresql-8.0-311.jdbc2.jar
Date: 2005-06-29 14:54:42
Message-ID: 42C2B632.9020909@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2005-06-29 14:57:48 Re: jdbc cts final diff for review
Previous Message Roland Walter 2005-06-29 14:35:42 Re: using postgresql-8.0-311.jdbc2.jar