pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthew Denny <mdenny@CS.Berkeley.EDU>
To: pgsql-novice@postgresql.org
To: pgsql-interfaces@postgresql.org
Subject: getting OID of INSERTed record in ECPG
Date: Mon, 17 Apr 2000 22:06:41 -0700 (PDT)
Message-ID: <14587.56388.364036.838765@caracas.CS.Berkeley.EDU> (raw)


Does anyone know how to get the OID of an INSERTed tuple when using
PostgreSQL and ECPG?  The documentation and the mail archives state that the
OID of an INSERTed tuple is placed in sqlca.sqlerrd[1] after the SQL
call.  Although I can get sqlca to return error messages and error
codes reliably in the same program, sqlca.sqlerrd[1] always equals 0
even after a successful insert.  Has anyone had this same problem?
I'm using the Linux binary distribution of PostgreSQL 6.5.3-3.  Any
possible solutions or workarounds would be greatly appreciated.

thanks,
Matt Denny

 



view thread (3+ messages)  latest in thread

Message-ID: <14587.56388.364036.838765@caracas.CS.Berkeley.EDU>
Permalink:  ../14587.56388.364036.838765@caracas.CS.Berkeley.EDU/
Also on:    postgresql.org/message-id/14587.56388.364036.838765@caracas.CS.Berkeley.EDU

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: mdenny@CS.Berkeley.EDU, pgsql-novice@postgresql.org
  Subject: Re: getting OID of INSERTed record in ECPG
  In-Reply-To: <14587.56388.364036.838765@caracas.CS.Berkeley.EDU>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox