|
From: <mar...@mh...> - 2011-04-15 21:23:09
|
Hi, Holger Hetterich writes: > "select SUM(length) of read;" > > I suppose the result will be integer also. So I do: I'm not too familiar with PostgreSQL internals, but I wouldn't bet on that. If the result is a long or long long integer, get_int will return an error. What does the following call return: unsigned int attribs; attribs = dbi_result_get_field_attribs_idx(data, 1); attribs should contain the size of the integer as explained in dbi/dbi.h (see the DBI_INTEGER_* definitions). regards, Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 |