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

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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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 16:33:52
Message-ID: 14994.935166832@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-interfaces
StOo <stuart(at)comodo(dot)net> writes:
> after calling PgConnection::Exec(const char *query);
> it returns PGRES_TUPLES_OK even when there is nothing in the table!

Yes.  Always has, always will.  PGRES_TUPLES_OK means you did a
SELECT and had no error --- it is not an error for the SELECT
to find no matching tuples.  You have to look at PQntuples
to find out how many tuples you got back.

			regards, tom lane

pgsql-interfaces by date

Next:From: Yu CaoDate: 1999-08-20 17:24:41
Subject: Re: [INTERFACES] libpq++ ---- PgDatabase instance problem
Previous:From: Ken J. WrightDate: 1999-08-20 15:59:01
Subject: Re: [INTERFACES] eekk tuples ok when there not!

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