Patches to get number of tuples affected

Поиск
Список
Период
Сортировка
От Michael Richards
Тема Patches to get number of tuples affected
Дата
Msg-id Pine.BSF.4.10.9906301331580.12242-400000@scifair.acadiau.ca
обсуждение исходный текст
Ответ на Re: [HACKERS] Getting number of tuples affected  (Vince Vielhaber <vev@michvhf.com>)
Ответы Re: [PATCHES] Patches to get number of tuples affected
Список pgsql-hackers
Hi.
Here are some diffs that implement a function called TuplesAffected. It
returns the number of tuples the last command affected, or 0 if the last
command was a SELECT. I added it to the PgConnection because it contains
the Exec method as well as the PQresult structure. Maybe farther down in
the inheritance there should be a function that executes a query and
returns the number of tuples affected or returned (according to whether it
was a select or not) or a -1 on error.

Patches are attached...

-Michael

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: [HACKERS] regression bigtest needs very long time
Следующее
От: Edmund Mergl
Дата:
Сообщение: Re: [HACKERS] Perl library (was Building Postgres)