Received: from tanja.fam-meskes.de (root@p3E9D3DCD.dip0.t-ipconnect.de [62.157.61.205]) by hub.org (8.9.3/8.9.3) with ESMTP id OAA42566; Tue, 14 Sep 1999 14:50:37 -0400 (EDT) (envelope-from michael@fam-meskes.de) Received: (from michael@localhost) by tanja.fam-meskes.de (8.9.3/8.9.0/Debian/GNU) id UAA05464; Tue, 14 Sep 1999 20:32:23 +0200 Date: Tue, 14 Sep 1999 20:32:23 +0200 From: Michael Meskes To: Andreas Theofilu Cc: Michael Meskes , pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] ecpg and getting just assigned serial number Message-ID: <19990914203223.E5414@gmx.net> Mail-Followup-To: Andreas Theofilu , Michael Meskes , pgsql-interfaces@postgresql.org References: <19990913102726.B3200@gmx.net> <99091314342400.01664@theofilu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <99091314342400.01664@theofilu>; from Andreas Theofilu on Mon, Sep 13, 1999 at 02:11:24PM +0200 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!