Received: from sss2.sss.pgh.pa.us (sss.pgh.pa.us [209.114.166.2]) by hub.org (8.9.3/8.9.3) with ESMTP id JAA42040; Wed, 19 Apr 2000 09:54:41 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss2.sss.pgh.pa.us (8.9.3/8.9.3) with ESMTP id JAA23205; Wed, 19 Apr 2000 09:54:34 -0400 (EDT) To: Matthew Denny cc: pgsql-interfaces@postgresql.org, pgsql-novice@postgresql.org Subject: Re: getting OID of INSERTed record in ECPG In-reply-to: <14589.17214.758887.216706@caracas.CS.Berkeley.EDU> References: <14587.56388.364036.838765@caracas.CS.Berkeley.EDU> <14589.17214.758887.216706@caracas.CS.Berkeley.EDU> Comments: In-reply-to Matthew Denny message dated "Tue, 18 Apr 2000 22:51:25 -0700" Date: Wed, 19 Apr 2000 09:54:33 -0400 Message-ID: <23202.956152473@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200004/149 Matthew Denny writes: > After sending the message below yesterday, I decided to look at the > source to see where sqlca.sqlerrd[1] gets updated. From what I can > tell, nowhere in ecpglib.c (or any other file) is sqlca.sqlerrd[1] > even referenced much less updated. However, the documentation and a > post to psql-interfaces (appended to the bottom of this email) seems > to indicate that sqlca.sqlerrd[1] will hold the OID of an INSERTed > tuple if a single tuple is inserted. Do I have the most up-to-date > source and binaries? Here's what I have: The post you quote is from Sep 99, so it's post-6.5.*. The feature you seek is in 7.0 ... regards, tom lane