Skip site navigation (1) Skip section navigation (2)

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

From: Vince Vielhaber <vev(at)michvhf(dot)com>
To: hackers(at)postgresql(dot)org, pgsql-patches(at)postgresql(dot)org
Subject: Re: [PATCHES] Patches to get number of tuples affected
Date: 1999-06-30 18:37:42
Message-ID: XFMail.990630143742.vev@michvhf.com (view raw or flat)
Thread:
Lists: pgsql-hackers
Darcy said: 
>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)?

Why can't I find PGTuples() anywhere?  What/where is it?

Anyway, I'm not sure I agree with TuplesAffected returning a 0 if 
PQcmdTuples() returns NULL.  An UPDATE can return 0 if it doesn't
update anything.  It may be better to just wrap PQcmdTuples() in 
pgdatabase.cc (since that's where PQntuples() is wrapped).

Vince.
-- 
==========================================================================
Vince Vielhaber -- KA8CSH   email: vev(at)michvhf(dot)com   flame-mail: /dev/null
       # include <std/disclaimers.h>                   TEAM-OS2
        Online Campground Directory    http://www.camping-usa.com
       Online Giftshop Superstore    http://www.cloudninegifts.com
==========================================================================



Responses

pgsql-hackers by date

Next:From: D'Arcy J.M. CainDate: 1999-06-30 19:13:54
Subject: Re: [PATCHES] Patches to get number of tuples affected
Previous:From: Michael RichardsDate: 1999-06-30 18:36:00
Subject: Re: [PATCHES] Patches to get number of tuples affected

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group