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

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: (view raw, whole thread or download thread mbox)
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 @ 
primary: scrappy(at)hub(dot)org           secondary: scrappy(at){freebsd|postgresql}.org 

In response to

pgsql-interfaces by date

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

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