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 64ECCDA267 for ; Wed, 5 Oct 2005 19:38:06 -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 27081-04 for ; Wed, 5 Oct 2005 22:38:02 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by svr1.postgresql.org (Postfix) with ESMTP id F20B3DA261 for ; Wed, 5 Oct 2005 19:38:02 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1ENHth-0007Tn-7N; Thu, 06 Oct 2005 11:38:01 +1300 Message-ID: <434455C8.5030203@opencloud.com> Date: Thu, 06 Oct 2005 11:38:00 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Russ Tennant Cc: pgsql-jdbc@postgresql.org Subject: Re: "org.postgresql.util.PSQLException: This ResultSet is References: <200510051718.20776.russ@i2rd.com> In-Reply-To: <200510051718.20776.russ@i2rd.com> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.008 required=5 tests=[AWL=0.008] X-Spam-Level: X-Archive-Number: 200510/21 X-Sequence-Number: 13952 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=meta.getVersionColumns(null, null, tableName); > > while (rstVersionColumns.next()) > > { > > String fieldName=rstColumn.getString("COLUMN_NAME"); // Exception thrown > here -O