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

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

From: "Ken J(dot) Wright" <ken(at)ori-ind(dot)com>
To: StOo <stuart(at)comodo(dot)net>, interfaces <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Re: [INTERFACES] eekk tuples ok when there not!
Date: 1999-08-20 15:59:01
Message-ID: 3.0.32.19990820085859.00982350@ren.cncware.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
At 15:20 08/20/1999 +0000, 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 =)

Yes, and yes ;-). An empty result set does not constitute an error. It's
your job to check ntuples. Although, coming from lot's of years with
Paradox, I do sometimes miss the 100+ possible return codes.

Ken


pgsql-interfaces by date

Next:From: Tom LaneDate: 1999-08-20 16:33:52
Subject: Re: [INTERFACES] eekk tuples ok when there not!
Previous:From: The Hermit HackerDate: 1999-08-20 15:44:15
Subject: Re: [INTERFACES] eekk tuples ok when there not!

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