getting primary key values for inserted records? - Mailing list pgsql-jdbc

From Guido Fiala
Subject getting primary key values for inserted records?
Date
Msg-id 200401271417.43767.guido.fiala@dka-gmbh.de
Whole thread Raw
Responses Re: getting primary key values for inserted records?  (Kris Jurka <books@ejurka.com>)
Re: getting primary key values for inserted records?  (Jeremy Buchmann <jeremy@wellsgaming.com>)
List pgsql-jdbc
Hallo,

I'am currently at the point, that after i insert a new Record in a ResultSet
using insertRow() and using a serial for the primary key of the target table.

Of course i do not call rs.updateInt(primaryKey), as the sequence does get me
the new value automatically.

However - even using rs.refreshRow() doesn't get me the values, just a requery
of the ResultSet.

What is the way to go here?

Guido

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Patch to readd documentation
Next
From: "sandrine wamy wapet"
Date:
Subject: Re: Connection problem