Re: patch: fix ResultSet.isLast and friends with cursor-based

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: patch: fix ResultSet.isLast and friends with cursor-based
Дата
Msg-id Pine.BSO.4.56.0404100854440.13327@leary.csoft.net
обсуждение исходный текст
Ответ на patch: fix ResultSet.isLast and friends with cursor-based resultsets  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc

On Sat, 10 Apr 2004, Oliver Jowett wrote:

> The attached patch fixes (and adds testcases for) the various resultset
> position querying methods (isFirst, isLast, isBeforeFirst, isAfterLast)
> that can be called on any resultset. The current driver does not handle
> these methods correctly when a TYPE_FORWARD_ONLY resultset that is
> backed by a cursor is used.
>
> isLast() may be more expensive after this patch (as it may need to do a
> FETCH), but this cost is warned about in the JDBC javadoc.
>
> A couple of other changes also in this patch:
>
>   - prevent use of relative row movement methods (relative, next,
> previous) when on the insert row -- as I read the spec these shouldn't
> be allowed.
>   - reset onInsertRow whenever an absolute row positioning method is called.
>

Patch Applied.

Kris Jurka


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

Предыдущее
От: "Sica, David (David)"
Дата:
Сообщение: Re: PostgreSQL 7.4.2 and pg74.1jdbc3.jar
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Connection Idle in transaction