Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B6BBDB5DC00 for ; Sun, 25 Sep 2011 20:54:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 13825-05 for ; Sun, 25 Sep 2011 23:54:51 +0000 (UTC) X-Greylist: delayed 00:38:29.799311 by SQLgrey-1.8.0-rc2 Received: from smtp-out2.electric.net (smtp-out2.electric.net [72.35.23.35]) by mail.postgresql.org (Postfix) with ESMTP id CF283B5DBD1 for ; Sun, 25 Sep 2011 20:54:51 -0300 (ADT) Received: from 1R7xvl-000172-W8 by cernan.electric.net with emc1-ok (Exim 4.76) (envelope-from ) id 1R7xvm-00017I-Td; Sun, 25 Sep 2011 16:16:18 -0700 Received: by emcmailer; Sun, 25 Sep 2011 16:16:18 -0700 Received: from [10.86.5.46] (helo=fuse246.electric.net) by cernan.electric.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R7xvl-000172-W8; Sun, 25 Sep 2011 16:16:17 -0700 Received: from mailanyone.net by fuse246.electric.net with esmtpa (MailAnyone extSMTP gocraig) id 1R7xvk-0005ml-FZ; Sun, 25 Sep 2011 16:16:17 -0700 Reply-To: From: "Craig Golby" To: "'Oliver Jowett'" Cc: References: <4e7a9257.0443960a.7ee0.ffffc7c4SMTPIN_ADDED@mx.google.com> <4E7AB8CC.2000600@ringerc.id.au> <4e7bc1c8.631b440a.3d1f.1dd0SMTPIN_ADDED@mx.google.com> In-Reply-To: Subject: Re: JVM & JDBC Upgrade --- Help !! Date: Mon, 26 Sep 2011 00:16:14 +0100 Message-ID: <000301cc7bd9$1fe87730$5fb96590$@golby@dignitas.ltd.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acx5gVm56IeU4CiDRF+pkw3JM3+i4ACVzYvg Content-Language: en-gb X-Outbound-IP: 10.86.5.46 X-Env-From: craig.golby@dignitas.ltd.uk X-PolicySMART: 1046319 X-Virus-Status: Scanned by VirusSMART (c) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, MSGID_MULTIPLE_AT=0.001, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201109/112 X-Sequence-Number: 22230 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=92t. 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. =20 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 = wrote: > =A0=A0=A0=A0=A0=A0=A0 int rowCount =3D 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 --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc