Re: [GENERAL] Resultset problem or BUG ! - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: [GENERAL] Resultset problem or BUG !
Date
Msg-id Pine.BSO.4.56.0408111515110.23044@leary.csoft.net
Whole thread Raw
In response to Re: [GENERAL] Resultset problem or BUG !  (Elie Nacache <elie_nacache@yahoo.com>)
List 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 by date:

Previous
From: Kris Jurka
Date:
Subject: Re: [Pgjdbc-commit] By davec: Added escape sequences for function
Next
From: Tom Lane
Date:
Subject: Bump JDBC build number for upcoming 7.4.4 release?