pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgreSQL.org>
To: Andreas Theofilu <theofilu@eunet.at>
Cc: Michael Meskes <meskes@postgreSQL.org>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] ecpg and getting just assigned serial number
Date: Tue, 14 Sep 1999 20:32:23 +0200
Message-ID: <19990914203223.E5414@gmx.net> (raw)
In-Reply-To: <99091314342400.01664@theofilu>
References: <19990913102726.B3200@gmx.net>
	<99091314342400.01664@theofilu>

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!



view thread (13+ messages)  latest in thread

Message-ID: <19990914203223.E5414@gmx.net>
Permalink:  ../19990914203223.E5414@gmx.net/
Also on:    postgresql.org/message-id/19990914203223.E5414@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: meskes@postgreSQL.org, theofilu@eunet.at
  Subject: Re: [INTERFACES] ecpg and getting just assigned serial number
  In-Reply-To: <19990914203223.E5414@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox