PQntuples return type

From: "Luca Ciciriello" <luca_ciciriello(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: PQntuples return type
Date: 2007-07-30 09:33:55
Message-ID: BAY114-F92E9E166A0270B81026759AEE0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2007-07-30 09:34:33 Re: query to match '\N'
Previous Message Bertram Scharpf 2007-07-30 08:49:21 Re: query to match '\N'