Re: "org.postgresql.util.PSQLException: This ResultSet is closed" in call to rst.getString(..)

From: Russ Tennant <russ(at)i2rd(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: "org.postgresql.util.PSQLException: This ResultSet is closed" in call to rst.getString(..)
Date: 2005-10-05 23:17:50
Message-ID: 200510051817.50474.russ@i2rd.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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(at)i2rd(dot)com

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2005-10-05 23:20:31 Re: "org.postgresql.util.PSQLException: This ResultSet is
Previous Message Oliver Jowett 2005-10-05 22:38:00 Re: "org.postgresql.util.PSQLException: This ResultSet is