Search Postgresql Archives

PQntuples return type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

              http://www.postgresql.org/docs/faq

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux