Received: from tanja.fam-meskes.de (root@p3E9D3E32.dip0.t-ipconnect.de [62.157.62.50]) by hub.org (8.9.3/8.9.3) with ESMTP id EAA19091 for ; Mon, 13 Sep 1999 04:28:21 -0400 (EDT) (envelope-from michael@fam-meskes.de) Received: (from michael@localhost) by tanja.fam-meskes.de (8.9.3/8.9.3/Debian/GNU) id KAA03816; Mon, 13 Sep 1999 10:27:26 +0200 Date: Mon, 13 Sep 1999 10:27:26 +0200 From: Michael Meskes To: Theofilu Andreas Cc: pgsql-interfaces@postgresql.org Subject: Re: [INTERFACES] ecpg and getting just assigned serial number Message-ID: <19990913102726.B3200@gmx.net> Mail-Followup-To: Theofilu Andreas , pgsql-interfaces@postgresql.org References: <199909121425.QAA05055@eunet.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <199909121425.QAA05055@eunet.at>; from Theofilu Andreas on Sun, Sep 12, 1999 at 04:25:17PM +0200 On Sun, Sep 12, 1999 at 04:25:17PM +0200, Theofilu Andreas wrote: > I'm using 'ecpg' to develop my application, because it's mostly compatible > to Informix's 'esqlc'. However. I have a table with a field of type > 'serial'. Now I've no problem to insert any sentences into this table, but > immediately after inserting a new sentence I need the newly assigned number > to the serial field in the table. How can I access this number? > With Informix I got this number in a field of structure 'sqlca'. With > PostgreSQL the same field in this structure exists but contains always 0, > as documented. Where exactly does Informix return it? sqlca[?]. Also does anyone know whether the backend returns that number somewhere? 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!