Re: libpq, ecpg and the bytea data type

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: libpq, ecpg and the bytea data type
Дата
Msg-id 20050916002222.GA72513@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: libpq, ecpg and the bytea data type  (Mark Richardson <markmapo@yahoo.com>)
Ответы Re: libpq, ecpg and the bytea data type
Список 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
make.

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
binary.

-- 
Michael Fuhr


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Mark Richardson
Дата:
Сообщение: Re: libpq, ecpg and the bytea data type
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Beta of DBD::Pg 1.44 available