On Sat, 13 Feb 1999, Matthew Hagerty wrote:
>Greetings,
>
>When using the PQgetvalue() function of libpq, the results, at least char
>fields, return the value in full, i.e. a char(20) field with the text
>"Matthew" for example returns "Matthew " (all 20 characters,
>padded with spaces).
You want a varchar (or is it bpchar?), not a char. char(x) will always return x
characters, with space padding if necessary.
Taral