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

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

From
"Ken J. Wright"
Date:
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