Re: JVM & JDBC Upgrade --- Help !! - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: JVM & JDBC Upgrade --- Help !!
Date
Msg-id CA+0W9LM8RgyoQbFK_UBZfSt_nLxTitbtRBveM9FVZTNxWTrXkQ@mail.gmail.com
Whole thread Raw
In response to Re: JVM & JDBC Upgrade --- Help !!  (Craig Ringer <ringerc@ringerc.id.au>)
Responses Re: JVM & JDBC Upgrade --- Help !!  ("Craig Golby" <craig.golby@dignitas.ltd.uk>)
List pgsql-jdbc
On 23 September 2011 11:16, Craig Golby <craig.golby@dignitas.ltd.uk> wrote:

>         int rowCount = rsID.getFetchSize();

Well, there's your problem, getFetchSize() doesn't return the number
of rows in a resultset, it returns whatever fetch size is in use,
which defaults to 0.
(That's probably something that has changed since the 7.3 driver - the
7.3 driver did do some odd nonstandard things in that area, and if you
relied on them then yes your code will break)

Oliver

pgsql-jdbc by date:

Previous
From: "Craig Golby"
Date:
Subject: Re: JVM & JDBC Upgrade --- Help !!
Next
From: Amar Dhole
Date:
Subject: use of savepoint in containter managed transaction