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

From: Taral <taral(at)cyberjunkie(dot)com>
To: Matthew Hagerty <matthew(at)venux(dot)net>, pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] (libpq question) Holy cow, what's all this fluff?!
Date: 1999-02-13 23:44:17
Message-ID: 99021317445301.11018@taral.dobiecenter.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Karsten Kaus 1999-02-13 23:58:53 Re: [INTERFACES] ODBC - MSysConf
Previous Message David Ford 1999-02-13 23:44:11 Re: [INTERFACES] (libpq question) Holy cow, what's all this fluff?!