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

Поиск
Список
Период
Сортировка
От Russ Tennant
Тема Re: "org.postgresql.util.PSQLException: This ResultSet is closed" in call to rst.getString(..)
Дата
Msg-id 200510051817.50474.russ@i2rd.com
обсуждение исходный текст
Ответ на Re: "org.postgresql.util.PSQLException: This ResultSet is  (Oliver Jowett <oliver@opencloud.com>)
Список 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@i2rd.com

Вложения

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: "org.postgresql.util.PSQLException: This ResultSet is
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: "org.postgresql.util.PSQLException: This ResultSet is