| From: | Kris Jurka <books(at)ejurka(dot)com> |
|---|---|
| To: | Elie Nacache <elie_nacache(at)yahoo(dot)com> |
| Cc: | pgsql-jdbc(at)postgresql(dot)org |
| Subject: | Re: [GENERAL] Resultset problem or BUG ! |
| Date: | 2004-08-11 20:17:58 |
| Message-ID: | Pine.BSO.4.56.0408111515110.23044@leary.csoft.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Oliver Jowett | 2004-08-12 05:41:18 | Re: [GENERAL] Resultset problem or BUG ! |
| Previous Message | Elie Nacache | 2004-08-11 14:53:10 | Re: [GENERAL] Resultset problem or BUG ! |