Received: from relay.EECS.Berkeley.EDU (relay.EECS.Berkeley.EDU [169.229.34.228]) by hub.org (8.9.3/8.9.3) with ESMTP id BAA08678; Tue, 18 Apr 2000 01:06:43 -0400 (EDT) (envelope-from mdenny@CS.Berkeley.EDU) Received: from CS.Berkeley.EDU (caracas.CS.Berkeley.EDU [128.32.46.231]) by relay.EECS.Berkeley.EDU (8.9.3/8.9.3) with ESMTP id WAA27311; Mon, 17 Apr 2000 22:06:42 -0700 (PDT) Received: (from mdenny@localhost) by CS.Berkeley.EDU (8.9.3/8.9.3) id WAA14246; Mon, 17 Apr 2000 22:06:41 -0700 (PDT) From: Matthew Denny MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 17 Apr 2000 22:06:41 -0700 (PDT) To: pgsql-novice@postgresql.org, pgsql-interfaces@postgresql.org Subject: getting OID of INSERTed record in ECPG X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14587.56388.364036.838765@caracas.CS.Berkeley.EDU> X-Archive-Number: 200004/110 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