From: osxdeveloper@mac.com
To: pgsql-interfaces@postgresql.org
Subject: getting the correct column size....
Date: Sat, 5 Aug 2006 22:43:35 +0200
Message-ID: <D0BEC6D1-273B-45B1-BF36-1ADC0E7BD202@mac.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: osxdeveloper@mac.com
Subject: Re: getting the correct column size....
In-Reply-To: <D0BEC6D1-273B-45B1-BF36-1ADC0E7BD202@mac.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox