Re: [GENERAL] Resultset problem or BUG !

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: [GENERAL] Resultset problem or BUG !
Дата
Msg-id Pine.BSO.4.56.0408151057050.23806@leary.csoft.net
обсуждение исходный текст
Ответ на Re: [GENERAL] Resultset problem or BUG !  (Elie Nacache <elie_nacache@yahoo.com>)
Список pgsql-jdbc

On Sun, 15 Aug 2004, Elie Nacache wrote:

> > The current development driver (see jdbc.postgresql.org) will treat
> > absolute(0) as if you'd called beforeFirst(). Older drivers might do
> > something different.
>
>  This is exactly the solution.

No, I don't believe it is.  If it was you could just change your code to
call beforeFirst() instead because getRow() will always return zero when
it is on the insert row.  This is your real problem.  You are expecting
getRow() to return the value of the newly inserted row which it does not.

Kris Jurka


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

Предыдущее
От: Elie Nacache
Дата:
Сообщение: Re: [GENERAL] Resultset problem or BUG !
Следующее
От: Lane Sharman
Дата:
Сообщение: Advice