Thread: PreparedStatement getting OID from INSERT

PreparedStatement getting OID from INSERT

From
Doug Fields
Date:
Hello All,

In the past, this has been written:

Peter Mount wrote:
 > Yes. The ResultSet.getStatusString() and
 > Statement.getResultStatusString() methods give you access to this
 > information.

However, I'm using a PreparedStatement. How can I get the OID from an
INSERT statement after executing executeUpdate()?

Many thanks,

Doug


Re: PreparedStatement getting OID from INSERT

From
"Dave Cramer"
Date:
Doug,

Doug,

PreparedStatement is extended from Statement so you s/b able to just
call the same method on a prepared statement as you do on a statement.

Dave

-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Doug Fields
Sent: Thursday, February 28, 2002 3:37 PM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] PreparedStatement getting OID from INSERT


Hello All,

In the past, this has been written:

Peter Mount wrote:
 > Yes. The ResultSet.getStatusString() and
 > Statement.getResultStatusString() methods give you access to this  >
information.

However, I'm using a PreparedStatement. How can I get the OID from an
INSERT statement after executing executeUpdate()?

Many thanks,

Doug


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)