Re: libpq, ecpg and the bytea data type - Mailing list pgsql-interfaces

From Michael Meskes
Subject Re: libpq, ecpg and the bytea data type
Date
Msg-id 20050923105232.GA28941@1
Whole thread Raw
In response to Re: libpq, ecpg and the bytea data type  (Michael Fuhr <mike@fuhr.org>)
List pgsql-interfaces
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!


pgsql-interfaces by date:

Previous
From: andy rost
Date:
Subject: descriptor areas to insert
Next
From: "hue"
Date:
Subject: Synchronize Postgres with an other database