X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9833CDA174 for ; Wed, 5 Oct 2005 20:16:51 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 40529-10 for ; Wed, 5 Oct 2005 23:16:47 +0000 (GMT) Received: from ms-smtp-02.rdc-kc.rr.com (ms-smtp-02.rdc-kc.rr.com [24.94.166.122]) by svr1.postgresql.org (Postfix) with ESMTP id 235C8D7FE7 for ; Wed, 5 Oct 2005 20:16:48 -0300 (ADT) Received: from russ.internal.i2rd.com (rrcs-67-53-27-98.west.biz.rr.com [67.53.27.98]) by ms-smtp-02.rdc-kc.rr.com (8.12.10/8.12.7) with ESMTP id j95NGDdu014575 for ; Wed, 5 Oct 2005 18:16:13 -0500 (CDT) From: Russ Tennant Organization: I2RD To: pgsql-jdbc@postgresql.org Subject: Re: "org.postgresql.util.PSQLException: This ResultSet is closed" in call to rst.getString(..) Date: Wed, 5 Oct 2005 18:17:50 -0500 User-Agent: KMail/1.8.2 References: <200510051718.20776.russ@i2rd.com> <434455C8.5030203@opencloud.com> In-Reply-To: <434455C8.5030203@opencloud.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1299552.mdFsh70AEX"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200510051817.50474.russ@i2rd.com> X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.093 required=5 tests=[AWL=0.044, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/22 X-Sequence-Number: 13953 --nextPart1299552.mdFsh70AEX Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 05 October 2005 5:38 pm, you wrote: > Russ Tennant wrote: > > It appears the result set is considered closed even though > > ResultSet.next() returns true in this case. > > Uh, you are calling getString on a different ResultSet to the one you > > called next() on: > > ResultSet rstVersionColumns=3Dmeta.getVersionColumns(null, null, > > tableName); > > > > while (rstVersionColumns.next()) > > > > { > > > > String fieldName=3DrstColumn.getString("COLUMN_NAME"); // Exception > > thrown here > > -O Ahah! :) Sorry for the false alarm. =2D-=20 Russ Tennant russ@i2rd.com --nextPart1299552.mdFsh70AEX Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDRF8eF1PNCHnhVNURApQmAJ97aNL+6Uhc1OEe6qQhkjyOIxGYFgCfWKuM lwlx/B5WpL/z4hXAFhESWEM= =Rzjf -----END PGP SIGNATURE----- --nextPart1299552.mdFsh70AEX--