Re: [INTERFACES] (libpq question) Holy cow, what's all this fluff?! - Mailing list pgsql-interfaces

From Taral
Subject Re: [INTERFACES] (libpq question) Holy cow, what's all this fluff?!
Date
Msg-id 99021317445301.11018@taral.dobiecenter.com
Whole thread Raw
In response to (libpq question) Holy cow, what's all this fluff?!  (Matthew Hagerty <matthew@venux.net>)
List pgsql-interfaces
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

pgsql-interfaces by date:

Previous
From: David Ford
Date:
Subject: Re: [INTERFACES] (libpq question) Holy cow, what's all this fluff?!
Next
From: Michael Davis
Date:
Subject: Access 97 and datatypes