ECPG and bytea

From: Lee Kindness <lkindness(at)csl(dot)co(dot)uk>
To: pgsql-hackers(at)postgresql(dot)org, pgsql-interfaces(at)postgresql(dot)org
Cc: Lee Kindness <lkindness(at)csl(dot)co(dot)uk>
Subject: ECPG and bytea
Date: 2003-06-26 16:37:46
Message-ID: 16123.8538.839179.120406@kelvin.csl.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

Guys, surely some one's done this before? I've tried using
PQescapeBytea too, but still get (slightly) different output. If I try
and insert "\x02\x01\x02\x03\x04hello\x05\x64\x99\x45" I get (int
values of chars printed):

INSERT: 2 1 2 3 4 104 101 108 108 111 5 100 -103 69
SELECT: 2 1 2 3 4 104 101 108 108 111 5 100 92 50 51 49 69

hoping someone has a quick answer... if not I'll post a full source
example and look into it more...

Thanks, L.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message scott.marlowe 2003-06-26 16:48:56 Re: PlPython
Previous Message DeJuan Jackson 2003-06-26 16:35:33 Re: PlPython

Browse pgsql-interfaces by date

  From Date Subject
Next Message Joe Conway 2003-06-26 17:04:18 Re: [HACKERS] ECPG and bytea
Previous Message Keith Keller 2003-06-26 15:02:03 Re: Perl