Re: [INTERFACES] ecpg and getting just assigned serial number - Mailing list pgsql-interfaces

From Michael Meskes
Subject Re: [INTERFACES] ecpg and getting just assigned serial number
Date
Msg-id 19990914203223.E5414@gmx.net
Whole thread Raw
In response to Re: [INTERFACES] ecpg and getting just assigned serial number  (Andreas Theofilu <theofilu@eunet.at>)
Responses Re: [INTERFACES] ecpg and getting just assigned serial number  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
On Mon, Sep 13, 1999 at 02:11:24PM +0200, Andreas Theofilu wrote:
> Informix returns this number in 'sqlca.sqlerrd[1]'. Currently this field
> is not used by ecpg.

Added to TODO. But I doubt this can easily be implemented.

> Maybe ecpg can implement the first call behind the scenes and put the new
> serial number into 'sqlca.sqlerrd[1]'.

No. ECPG does not interpret any command. They are just fed into the backend.

After an insert the backend returns the number of records inserted, but does
it also return the OID or whatever? I'm not sure but since an insert could
add more than one tuple I doubt that.

Michael
-- 
Michael Meskes                         | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz    | Go Rhein Fire!
Tel.: (+49) 2431/72651                 | Use Debian GNU/Linux!
Email: Michael@Fam-Meskes.De           | Use PostgreSQL!


pgsql-interfaces by date:

Previous
From: Michael Meskes
Date:
Subject: Re: [INTERFACES] Still have problem with single quotation mark
Next
From: Michael Meskes
Date:
Subject: Re: [INTERFACES] ecpg and getting just assigned serial number