Re: [PATCHES] Patches to get number of tuples affected

From: Michael Richards <miker(at)scifair(dot)acadiau(dot)ca>
To: "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net>
Cc: vev(at)michvhf(dot)com, pgsql-patches(at)postgreSQL(dot)org, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [PATCHES] Patches to get number of tuples affected
Date: 1999-06-30 18:36:00
Message-ID: Pine.BSF.4.10.9906301534400.12242-100000@scifair.acadiau.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 30 Jun 1999, D'Arcy J.M. Cain wrote:

> Thus spake Michael Richards
> > 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
>
> Why not overload PGTuples() instead (assuming it doesn't already do this)?

Tuples returned tells you how many you can get using the getvalue series.
If you tried that with an update, it core dumps. I think the two are
really related, but fundamentally different.

-Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vince Vielhaber 1999-06-30 18:37:42 Re: [PATCHES] Patches to get number of tuples affected
Previous Message D'Arcy J.M. Cain 1999-06-30 18:15:09 Re: [PATCHES] Patches to get number of tuples affected