Re: [GENERAL] Resultset problem or BUG !

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

On Wed, 11 Aug 2004, Elie Nacache wrote:

> INFO >> sqlDatas is of type ResultSet
> INFO >> Step first insert new row
>
> this.sqlDatas.moveToInsertRow();
> this.updateColumns();
> this.sqlDatas.insertRow();
> this.sqlLineNumber = this.sqlDatas.getRow(); // INFO >> return 0
>

The problem here is that you are still on the insert row, you are not
positioned anywhere in your ResultSet so getRow returns zero.  You seem to
be expecting getRow to return the newly inserted row's position which I
admit seems handly although it doesn't look to be what the spec wants.

Kris Jurka

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: [Pgjdbc-commit] By davec: Added escape sequences for function
Следующее
От: Tom Lane
Дата:
Сообщение: Bump JDBC build number for upcoming 7.4.4 release?