Re: Result Set Cursor Patch

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Result Set Cursor Patch
Дата
Msg-id Pine.BSO.4.56.0404301115170.23452@leary.csoft.net
обсуждение исходный текст
Ответ на Re: Result Set Cursor Patch  (Andy Zeneski <jaz@ofbiz.org>)
Ответы Re: Result Set Cursor Patch
Список pgsql-jdbc

On Fri, 30 Apr 2004, Andy Zeneski wrote:
>
> On Apr 30, 2004, at 11:43 AM, Kris Jurka wrote:
>
> > This patch does not support updateable ResultSets (deleteRow,
> > insertRow),
> > but doesn't do anything to prevent a cursor from being used in that
> > case.
>
> I don't recall changing this, if it previously prevented the cursor
> from being used on update, then it should still be the same. I will
> look into this and get it fixed. I don't think PostgreSQL supports
> updateable cursors, so should the JDBC driver throw an exception if you
> try to use updateable with a fetch size > 0, or should it avoid the
> cursor and hope it can handle the results?
>

You didn't, but before a scrollable updateable resultset would fetch all
the rows so it could manipulate them.  With a cursor based method you will
be discarding the changes when moving to a new block and when refetching
you won't see them because the cursor won't pick up the changes.  The
scrollable updateable case must fall back to fetching all rows instead of
throwing an exception because so many people are already using it.

Kris Jurka

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

Предыдущее
От: Andy Zeneski
Дата:
Сообщение: Re: Result Set Cursor Patch
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Result Set Cursor Patch