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

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: "org.postgresql.util.PSQLException: This ResultSet is
Дата
Msg-id 076EFC36-4950-4E7D-9AC6-540B999F5449@fastcrypt.com
обсуждение исходный текст
Ответ на Re: "org.postgresql.util.PSQLException: This ResultSet is  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
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
>
>


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

Предыдущее
От: Russ Tennant
Дата:
Сообщение: Re: "org.postgresql.util.PSQLException: This ResultSet is closed" in call to rst.getString(..)
Следующее
От: "Peter Cook"
Дата:
Сообщение: Getting connected