Re: NullPointerException in ResultSetMetaData getColumnCount

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: NullPointerException in ResultSetMetaData getColumnCount
Дата
Msg-id Pine.BSO.4.56.0410181515590.5115@leary.csoft.net
обсуждение исходный текст
Ответ на NullPointerException in ResultSetMetaData getColumnCount when using on a resultset from a stored function  (tomas.johansson@agent25.se (Tomas))
Список pgsql-jdbc

On Mon, 18 Oct 2004, Tomas wrote:

> How can you get metadata from a resultset that is returned from a
> stored function ?

You need to be running with autocommit off for this to work at all.  This
is not just a metadata problem.  The problem is that cursors are closed at
commit, which in auto commit mode is before the results can even be
fetched from it.  It could definitely use a better error message, the 8.0
driver gives "ERROR: cursor "<unnamed portal 1>" does not exist", but
that's still not very good.

Kris Jurka

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: boolean problem
Следующее
От: "Bacchu, Anjan"
Дата:
Сообщение: FW: your post to pgjdbc-commit