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 0CAE5DA261 for ; Wed, 5 Oct 2005 20:20:41 -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 59114-01 for ; Wed, 5 Oct 2005 23:20:33 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 14177DA231 for ; Wed, 5 Oct 2005 20:20:34 -0300 (ADT) Received: (qmail 32490 invoked from network); 5 Oct 2005 23:20:36 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 5 Oct 2005 23:20:36 -0000 In-Reply-To: <434455C8.5030203@opencloud.com> References: <200510051718.20776.russ@i2rd.com> <434455C8.5030203@opencloud.com> Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <076EFC36-4950-4E7D-9AC6-540B999F5449@fastcrypt.com> Cc: Russ Tennant , pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: "org.postgresql.util.PSQLException: This ResultSet is Date: Wed, 5 Oct 2005 19:20:31 -0400 To: Oliver Jowett X-Mailer: Apple Mail (2.734) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.02 required=5 tests=[AWL=0.020] X-Spam-Level: X-Archive-Number: 200510/23 X-Sequence-Number: 13954 The more interesting thing is what do HSQL and MySql return here ;) Dave On 5-Oct-05, at 6:38 PM, Oliver Jowett 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=meta.getVersionColumns(null, null, >> tableName); >> >> while (rstVersionColumns.next()) >> >> { >> >> String fieldName=rstColumn.getString("COLUMN_NAME"); // Exception >> thrown >> here >> > > -O > > ---------------------------(end of > broadcast)--------------------------- > TIP 6: explain analyze is your friend > >