2012/8/16 aliosa <constantinica_alin@xxxxxxxxx>
-- Hello
I am using libpq to find information about fileds of table ( type and size).
I have a problem with getting the sizeof varchar fields.
If a table has a fiels varchar[35] and want to obtain 35.
I used PQgetlength or PQfsize but is not good for my work.
Can someone tell me what function shall I use to get the size of filed ?
You should use PQfmod().
// Dmitriy.