Re: [INTERFACES] object id - Mailing list pgsql-jdbc

From Peter Mount
Subject Re: [INTERFACES] object id
Date
Msg-id 5.0.2.1.0.20010312201101.00a27990@mail.retep.org.uk
Whole thread Raw
List pgsql-jdbc
At 19:22 12/03/01 +0100, maet@gmx.de wrote:
> >Hmm, not really. The only oid you can get is one from an Insert, but thats
> >for the most recent row inserted.
>
>
>How do i get the oid from the blob of the most recent row inserted?

The only way is to re-query the row as only the oid of the row is returned
during the insert.

The only other way is to use the largeobject api (not JDBC) and then you
have the oid before any inserts.

Peter


pgsql-jdbc by date:

Previous
From: Peter Mount
Date:
Subject: Re: JDBC build patches
Next
From: Gregory Bittar
Date:
Subject: Re: callable statements, latest snapshot