Re: [GENERAL] Resultset problem or BUG !

From: Kris Jurka <books(at)ejurka(dot)com>
To: Elie Nacache <elie_nacache(at)yahoo(dot)com>
Cc: Oliver Jowett <oliver(at)opencloud(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [GENERAL] Resultset problem or BUG !
Date: 2004-08-15 15:59:35
Message-ID: Pine.BSO.4.56.0408151057050.23806@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Lane Sharman 2004-08-17 02:12:12 Advice
Previous Message Elie Nacache 2004-08-15 14:42:20 Re: [GENERAL] Resultset problem or BUG !