From: | Michael Richards <miker(at)scifair(dot)acadiau(dot)ca> |
---|---|
To: | Vince Vielhaber <vev(at)michvhf(dot)com> |
Cc: | pgsql-patches(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org |
Subject: | Patches to get number of tuples affected |
Date: | 1999-06-30 17:27:46 |
Message-ID: | Pine.BSF.4.10.9906301331580.12242-400000@scifair.acadiau.ca |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
Attachment | Content-Type | Size |
---|---|---|
pgconnection.cc.patch | text/plain | 619 bytes |
pgconnection.h.patch | text/plain | 865 bytes |
pgconnection.patch | text/plain | 865 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Edmund Mergl | 1999-06-30 17:39:30 | Re: [HACKERS] Perl library (was Building Postgres) |
Previous Message | Thomas Lockhart | 1999-06-30 15:22:58 | Re: [HACKERS] regression bigtest needs very long time |