Skip site navigation (1) Skip section navigation (2)

Re: getting OID of INSERTed record in ECPG

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Matthew Denny <mdenny(at)CS(dot)Berkeley(dot)EDU>
Cc: pgsql-interfaces(at)postgresql(dot)org, pgsql-novice(at)postgresql(dot)org
Subject: Re: getting OID of INSERTed record in ECPG
Date: 2000-04-19 13:54:33
Message-ID: 23202.956152473@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-interfaces
Matthew Denny <mdenny(at)CS(dot)Berkeley(dot)EDU> 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

In response to

pgsql-interfaces by date

Next:From: Nelson Ferreira JuniorDate: 2000-04-19 14:53:17
Subject: Re: Large strings
Previous:From: Gene SokolovDate: 2000-04-19 13:38:45
Subject: ODBC not reporting RI violations.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group