pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lee Kindness <lkindness@csl.co.uk>
To: pgsql-hackers@postgresql.org
To: pgsql-interfaces@postgresql.org
Cc: Lee Kindness <lkindness@csl.co.uk>
Subject: ECPG and bytea
Date: Thu, 26 Jun 2003 17:37:46 +0100
Message-ID: <16123.8538.839179.120406@kelvin.csl.co.uk> (raw)

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.



view thread (2+ messages)  latest in thread

Message-ID: <16123.8538.839179.120406@kelvin.csl.co.uk>
Permalink:  ../16123.8538.839179.120406@kelvin.csl.co.uk/
Also on:    postgresql.org/message-id/16123.8538.839179.120406@kelvin.csl.co.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: lkindness@csl.co.uk, pgsql-hackers@postgresql.org
  Subject: Re: ECPG and bytea
  In-Reply-To: <16123.8538.839179.120406@kelvin.csl.co.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox