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

Re: libpq, ecpg and the bytea data type

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Mark Richardson <markmapo(at)yahoo(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: libpq, ecpg and the bytea data type
Date: 2005-09-16 00:22:22
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
On Thu, Sep 15, 2005 at 12:18:05PM -0700, Mark Richardson wrote:
> But the ECPG part still doesn't seem to have the correct behavior.
> With the following in a .pgc file...

The code you posted has several syntax errors so it can't be what
you're running.  When posting examples, please show exactly what
you're doing so people don't have to guess at what corrections to

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
mode and use PQunescapeBytea() to convert the escape sequences to

Michael Fuhr

In response to


pgsql-interfaces by date

Next:From: Greg Sabino MullaneDate: 2005-09-16 01:47:19
Subject: Re: Beta of DBD::Pg 1.44 available
Previous:From: Mark RichardsonDate: 2005-09-15 19:18:05
Subject: Re: libpq, ecpg and the bytea data type

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