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

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
libdbi-devel mailing list
libdbi-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libdbi-devel

Reply via email to