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
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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
--
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

Browse pgsql-interfaces by date

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