From: creid <creid@netbcg.com>
To: pgsql-interfaces@postgresql.org
Subject: PGEASY
Date: Thu, 30 Oct 2003 09:44:31 -0500
Message-ID: <ILECJKPFOLBAGINIFFFBKEDGCAAA.creid@netbcg.com> (raw)
I am experimenting with LIBPGEASY
Problem: When I access a "varchar(30)" column using "DECLARE.....FOR SELECT
column from schema.table WHERE pkey='KEY'"
When I fetch to a declared variable to return to a calling procedure, my
program does a (segmentation error) unless I declare the char variable to
some much higher value than it is seemingly necessary. Moreover, the
problem does not occur when I manipulate the result in the called procedure.
In fact, in my experimentation, I have noticed that I can declare a char
variable array less than what the result is and it still works. The crash
only occurs in the calling procedure.
What might I be doing wrong?
Thanks
Cliff
Attachments:
[application/ms-tnef] winmail.dat (1.8K, ../ILECJKPFOLBAGINIFFFBKEDGCAAA.creid@netbcg.com/2-winmail.dat)
download
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: creid@netbcg.com
Subject: Re: PGEASY
In-Reply-To: <ILECJKPFOLBAGINIFFFBKEDGCAAA.creid@netbcg.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