PQntuples return type

Поиск
Список
Период
Сортировка
От Luca Ciciriello
Тема PQntuples return type
Дата
Msg-id BAY114-F92E9E166A0270B81026759AEE0@phx.gbl
обсуждение исходный текст
Ответ на Re: Retrieve the record ID  (Kenneth Downs <ken@secdat.com>)
Ответы Re: PQntuples return type  ("Greg Sabino Mullane" <greg@turnstep.com>)
Список 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 по дате отправления:

Предыдущее
От: Bertram Scharpf
Дата:
Сообщение: Re: query to match '\N'
Следующее
От: Alban Hertroys
Дата:
Сообщение: Re: query to match '\N'