Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#32 fix for PgBytea quote uses PQespcaeByteaConn

open
nobody
None
5
2008-04-10
2008-04-10
Choe, Cheng-Dae
No

PgBytes quote the value using internal implementation.

But. The bytea escaping make different by connection property. and PostgreSQL 8.3.1 make some modify on escaping bytea escaping method

In release note 8.3.1
"Make encode(bytea, 'escape') convert all high-bit-set byte values into \nnn octal escape sequences (Tom) "

Becase of above thing. current implementation was make some error on Bytea escaping.

This patch add libPQquoteByteaConn(libpqmodule.c) and use this method to encode Bytea type.

If you use this patch. pleas use PgBytea type with connection like as
PgBytea(value, conn)

Discussion

  • patch file

     
    Attachments