From: Michael Meskes <meskes@postgresql.org>
To: Michael Fuhr <mike@fuhr.org>
Cc: Mark Richardson <markmapo@yahoo.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: libpq, ecpg and the bytea data type
Date: Fri, 23 Sep 2005 12:52:32 +0200
Message-ID: <20050923105232.GA28941@1> (raw)
In-Reply-To: <20050916002222.GA72513@winnie.fuhr.org>
References: <20050915191806.66041.qmail@unknown-206-190-38-164.yahoo.com>
<20050916002222.GA72513@winnie.fuhr.org>
On Thu, Sep 15, 2005 at 06:22:22PM -0600, Michael Fuhr wrote:
> In any case, others have reported trouble handling bytea with ECPG;
> see the list archives for previous discussion. I see a lot of calls
> to strlen() in the ECPG source code, so it might not be designed
> to handle binary data. You might need to fetch the data in non-binary
Your right, it is not. ECPG at the moment expects data to be ascii and
translates it into the type of the variable.
Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!
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: meskes@postgresql.org, mike@fuhr.org, markmapo@yahoo.com
Subject: Re: libpq, ecpg and the bytea data type
In-Reply-To: <20050923105232.GA28941@1>
* 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