Re: [INTERFACES] eekk tuples ok when there not! - Mailing list pgsql-interfaces

From The Hermit Hacker
Subject Re: [INTERFACES] eekk tuples ok when there not!
Date
Msg-id Pine.BSF.4.10.9908201243230.61055-100000@thelab.hub.org
Whole thread Raw
In response to eekk tuples ok when there not!  (StOo <stuart@comodo.net>)
List pgsql-interfaces
On Fri, 20 Aug 1999, StOo wrote:

> 
> postgres 6-5-1 on linux
> 
> after calling PgConnection::Exec(const char *query);
> it returns PGRES_TUPLES_OK even when there is nothing in the table!
> has anyone else noticed this?? or am i mad again =)

PGRES_TUPLES_OK, as I've always interpreted it, means that there were no
errors in the query itself...checking for res->ntuples is how to check for
the existence of any data...

Systems Administrator @ hub.org 
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org 



pgsql-interfaces by date:

Previous
From: StOo
Date:
Subject: eekk tuples ok when there not!
Next
From: "Ken J. Wright"
Date:
Subject: Re: [INTERFACES] eekk tuples ok when there not!