Re: Resultset holdability

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Resultset holdability
Дата
Msg-id 43597344.3080005@opencloud.com
обсуждение исходный текст
Ответ на Re: Resultset holdability  (Geert Bevin <gbevin@uwyn.com>)
Ответы Re: Resultset holdability  (Geert Bevin <gbevin@uwyn.com>)
Список pgsql-jdbc
Geert Bevin wrote:

>> Have you turned autocommit off?
>
> No

The driver won't use portal-based resultsets unless you turn off
autocommit. This is because it can't create the equivalent of a WITH
HOLD cursor via protocol-level portals, so any portal created will be
closed at the end of the creating transaction. With autocommit on, the
transaction ends immediately after statement execution, so using a
portal is pointless.

Otherwise it sounds like you meet all the requirements (V3 protocol,
TYPE_FORWARD_ONLY, and fetchsize > 0).

-O

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

Предыдущее
От: Geert Bevin
Дата:
Сообщение: Re: Resultset holdability
Следующее
От: Geert Bevin
Дата:
Сообщение: Re: Resultset holdability