pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Russ Tennant <russ@i2rd.com>
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
Message-ID: <200510051817.50474.russ@i2rd.com> (raw)
In-Reply-To: <434455C8.5030203@opencloud.com>
References: <200510051718.20776.russ@i2rd.com>
	<434455C8.5030203@opencloud.com>

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=meta.getVersionColumns(null, null,
> > tableName);
> >
> > while (rstVersionColumns.next())
> >
> > {
> >
> > String fieldName=rstColumn.getString("COLUMN_NAME"); // Exception
> > thrown here
>
> -O

Ahah! :) Sorry for the false alarm.

-- 
Russ Tennant
russ@i2rd.com

view thread (4+ messages)  latest in thread

Message-ID: <200510051817.50474.russ@i2rd.com>
Permalink:  ../200510051817.50474.russ@i2rd.com/
Also on:    postgresql.org/message-id/200510051817.50474.russ@i2rd.com

 · 

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: russ@i2rd.com
  Subject: Re: "org.postgresql.util.PSQLException: This ResultSet is closed" in call to rst.getString(..)
  In-Reply-To: <200510051817.50474.russ@i2rd.com>
  References: <200510051718.20776.russ@i2rd.com> <434455C8.5030203@opencloud.com> <200510051817.50474.russ@i2rd.com>

* 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