Re: "org.postgresql.util.PSQLException: This ResultSet is

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

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

Предыдущее
От: Russ Tennant
Дата:
Сообщение: "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(..)