getting the correct column size....

From: osxdeveloper(at)mac(dot)com
To: pgsql-interfaces(at)postgresql(dot)org
Subject: getting the correct column size....
Date: 2006-08-05 20:43:35
Message-ID: D0BEC6D1-273B-45B1-BF36-1ADC0E7BD202@mac.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hi all!

I am developing an application (on Mac OS X, using ObjC and Cocoa)
the uses
the libpq client library. Now I have difficulties to get the correct
size of several sql types.

for example:
A table as a char(10) column.
When I get the size via PQfmod() I get 14 as size value.

2. example:
My table has a decimal(19,4) field (19=precision, 4=scale).
How can I get the 19,4 value via the client lib?

I did not find any other way to get column sizes.

How can I get the values?

Thanks for any help!

Regards,
Ralf

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Peter Eisentraut 2006-08-06 20:26:28 Re: getting the correct column size....
Previous Message Volkan YAZICI 2006-08-05 07:14:26 Re: PQftype() and Oid