Re: [INTERFACES] ecpg and getting just assigned serial number

Поиск
Список
Период
Сортировка
От Michael Meskes
Тема Re: [INTERFACES] ecpg and getting just assigned serial number
Дата
Msg-id 19990914203223.E5414@gmx.net
обсуждение исходный текст
Ответ на Re: [INTERFACES] ecpg and getting just assigned serial number  (Andreas Theofilu <theofilu@eunet.at>)
Ответы Re: [INTERFACES] ecpg and getting just assigned serial number  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Michael Meskes
Дата:
Сообщение: Re: [INTERFACES] Still have problem with single quotation mark
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: [INTERFACES] ecpg and getting just assigned serial number