From: Bartek Teodorczyk <barteo@it.pl>
To: pgsql-interfaces@postgresql.org
Subject: Getting field length in libpq
Date: Tue, 09 Mar 1999 15:44:57 +0100
Message-ID: <36E533E9.B72B4C64@it.pl> (raw)
I have following problem:
I need to get the length of field after executing query. For INT4 fields
it is simple (call PQfsize and get 4) but when I have VARCHAR(30) field
PQfsize returns -1. I cannot call PQgetlength for example first tuple
because this tuple can have 10 chars and PQgetlength returns 10 but I
need 30. Have you any solutions?
BarTeo
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: barteo@it.pl
Subject: Re: Getting field length in libpq
In-Reply-To: <36E533E9.B72B4C64@it.pl>
* 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