pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Taral <taral@cyberjunkie.com>
To: Matthew Hagerty <matthew@venux.net>
To: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] (libpq question) Holy cow, what's all this fluff?!
Date: Sat, 13 Feb 1999 17:44:17 -0600
Message-ID: <99021317445301.11018@taral.dobiecenter.com> (raw)
References: <4.1.19990213182304.0095d400@mail.venux.net>

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



view thread (9+ messages)  latest in thread

Message-ID: <99021317445301.11018@taral.dobiecenter.com>
Permalink:  ../99021317445301.11018@taral.dobiecenter.com/
Also on:    postgresql.org/message-id/99021317445301.11018@taral.dobiecenter.com

 · 

reply

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: taral@cyberjunkie.com, matthew@venux.net
  Subject: Re: [INTERFACES] (libpq question) Holy cow, what's all this fluff?!
  In-Reply-To: <99021317445301.11018@taral.dobiecenter.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