Re: [INTERFACES] eekk tuples ok when there not!

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: StOo <stuart(at)comodo(dot)net>
Cc: interfaces <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Re: [INTERFACES] eekk tuples ok when there not!
Date: 1999-08-20 15:44:15
Message-ID: Pine.BSF.4.10.9908201243230.61055-100000@thelab.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)hub(dot)org secondary: scrappy(at){freebsd|postgresql}.org

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ken J. Wright 1999-08-20 15:59:01 Re: [INTERFACES] eekk tuples ok when there not!
Previous Message StOo 1999-08-20 15:20:58 eekk tuples ok when there not!