Re: [GENERAL] PQntuples returns an int.

2010-03-03 Thread Guillaume Yziquel
Greg Sabino Mullane a écrit : -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 I'm asking this because I'm wondering whether you could have more tuples in the result of a query than could be indexed by the 'int' type. May this happen? Yes, but it's a low concern as many other things would

Re: [GENERAL] PQntuples returns an int.

2010-03-03 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 > I'm asking this because I'm wondering whether you could have more tuples > in the result of a query than could be indexed by the 'int' type. May > this happen? Yes, but it's a low concern as many other things would break before you got to

Re: [GENERAL] PQntuples returns an int.

2010-03-03 Thread Steve Atkins
On Mar 3, 2010, at 10:05 AM, Guillaume Yziquel wrote: > Hello. > > I've been looking at the PQntuples function, in section 29.3.2. 'Retrieving > query result information' of > > http://www.postgresql.org/docs/8.2/interactive/libpq-exec.html > > The declaration is: > >> int PQntuples(co

[GENERAL] PQntuples returns an int.

2010-03-03 Thread Guillaume Yziquel
Hello. I've been looking at the PQntuples function, in section 29.3.2. 'Retrieving query result information' of http://www.postgresql.org/docs/8.2/interactive/libpq-exec.html The declaration is: int PQntuples(const PGresult *res); I'm wondering: why the 'int'? why not a 'long int'