Skip site navigation (1) Skip section navigation (2)

Re: libpq, ecpg and the bytea data type

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: Mark Richardson <markmapo(at)yahoo(dot)com>,pgsql-interfaces(at)postgresql(dot)org
Subject: Re: libpq, ecpg and the bytea data type
Date: 2005-09-23 10:52:32
Message-ID: 20050923105232.GA28941@1 (view raw, whole thread or download thread mbox)
Lists: 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 Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

In response to

pgsql-interfaces by date

Next:From: hueDate: 2005-09-26 15:55:34
Subject: Synchronize Postgres with an other database
Previous:From: andy rostDate: 2005-09-22 18:02:14
Subject: inserting row w/descriptor area

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group