pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Golby <craig.golby@dignitas.ltd.uk>
To: 'Oliver Jowett' <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JVM & JDBC Upgrade --- Help !!
Date: Mon, 26 Sep 2011 00:16:14 +0100
Message-ID: <000301cc7bd9$1fe87730$5fb96590$@golby@dignitas.ltd.uk> (raw)
In-Reply-To: <CA+0W9LM8RgyoQbFK_UBZfSt_nLxTitbtRBveM9FVZTNxWTrXkQ@mail.gmail.com>
References: <4e7a9257.0443960a.7ee0.ffffc7c4SMTPIN_ADDED@mx.google.com>
	<4E7AB8CC.2000600@ringerc.id.au>
	<4e7bc1c8.631b440a.3d1f.1dd0SMTPIN_ADDED@mx.google.com>
	<CA+0W9LM8RgyoQbFK_UBZfSt_nLxTitbtRBveM9FVZTNxWTrXkQ@mail.gmail.com>

Hi Oliver, a little research later and it does appear to be the case that
getFetchSize used to return the size of the resultset, but now doesn’t.

We were looking to upgrade Apache, Tomcat, PostgreSQL DRivers and ultimately
PostgreSQL itself, but in all honesty to change all the instances of this to
work in some other way would be a major undertaking for the application
developers.  

As such, we will likely continue with what we have, as simply put, it works
!!

Thanks for your input.

Craig


-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Oliver Jowett
Sent: 23 September 2011 00:42
To: craig.golby@dignitas.ltd.uk
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] JVM & JDBC Upgrade --- Help !!

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

-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc




view thread (6+ messages)

Message-ID: <000301cc7bd9$1fe87730$5fb96590$@golby@dignitas.ltd.uk>
Permalink:  ../000301cc7bd9$1fe87730$5fb96590$@golby@dignitas.ltd.uk/
Also on:    postgresql.org/message-id/000301cc7bd9$1fe87730$5fb96590$@golby@dignitas.ltd.uk

 · 

reply

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: craig.golby@dignitas.ltd.uk, oliver@opencloud.com
  Subject: Re: JVM & JDBC Upgrade --- Help !!
  In-Reply-To: <000301cc7bd9$1fe87730$5fb96590$@golby@dignitas.ltd.uk>
  References: <4e7a9257.0443960a.7ee0.ffffc7c4SMTPIN_ADDED@mx.google.com> <4E7AB8CC.2000600@ringerc.id.au> <4e7bc1c8.631b440a.3d1f.1dd0SMTPIN_ADDED@mx.google.com> <CA+0W9LM8RgyoQbFK_UBZfSt_nLxTitbtRBveM9FVZTNxWTrXkQ@mail.gmail.com> <000301cc7bd9$1fe87730$5fb96590$@golby@dignitas.ltd.uk>

* 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