PQntuples return type - Mailing list pgsql-general

From Luca Ciciriello
Subject PQntuples return type
Date
Msg-id BAY114-F92E9E166A0270B81026759AEE0@phx.gbl
Whole thread Raw
In response to Re: Retrieve the record ID  (Kenneth Downs <ken@secdat.com>)
Responses Re: PQntuples return type  ("Greg Sabino Mullane" <greg@turnstep.com>)
List pgsql-general
Hi All.
My question is simple: can the function PQntuples returns a negative
integer? I've found in the PostgreSQL manual the following definition:

Returns the number of rows (tuples) in the query result.
int PQntuples(const PGresult *res);

So, my doubt is: if the return type is int instead of unsigned int, is this
function testable for negative return values?

Thanks in advance.

Luca

_________________________________________________________________
The next generation of Hotmail is here!  http://www.newhotmail.co.uk


pgsql-general by date:

Previous
From: Bertram Scharpf
Date:
Subject: Re: query to match '\N'
Next
From: Alban Hertroys
Date:
Subject: Re: query to match '\N'