Patches to get number of tuples affected - Mailing list pgsql-hackers

From Michael Richards
Subject Patches to get number of tuples affected
Date
Msg-id Pine.BSF.4.10.9906301331580.12242-400000@scifair.acadiau.ca
Whole thread Raw
In response to Re: [HACKERS] Getting number of tuples affected  (Vince Vielhaber <vev@michvhf.com>)
Responses Re: [PATCHES] Patches to get number of tuples affected
List 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 by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: [HACKERS] regression bigtest needs very long time
Next
From: Edmund Mergl
Date:
Subject: Re: [HACKERS] Perl library (was Building Postgres)