pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nils Gösche <cartan@cartan.de>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Empty bytea values on 9.2.1
Date: Tue, 30 Oct 2012 11:09:57 +0100
Message-ID: <001101cdb686$b80fd290$282f77b0$@de> (raw)
In-Reply-To: <22948.1351539417@sss.pgh.pa.us>
References: <006a01cdb5fe$f8400c00$e8c02400$@de>
	<22948.1351539417@sss.pgh.pa.us>

Tom wrote:

> 9.0 and later default to showing bytea output in "hex" format.  I
> wonder whether you are using a version of the ODBC code that handles
> that.

I am using version 9.01.02.00 which is rather recent, I think.

> If not, you many need to set "bytea_output" to "escape".

Good idea: That fixes it!

Interestingly, longer bytea values seem to work fine even without
setting bytea_output to 'escape'! It's only the empty arrays that
seem to make problems.

Regards,
-- 
Nils Gösche
"Don't ask for whom the <CTRL-G> tolls."






view thread (4+ messages)  latest in thread

Message-ID: <001101cdb686$b80fd290$282f77b0$@de>
Permalink:  ../001101cdb686$b80fd290$282f77b0$@de/
Also on:    postgresql.org/message-id/001101cdb686$b80fd290$282f77b0$@de

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: cartan@cartan.de, tgl@sss.pgh.pa.us
  Subject: Re: Empty bytea values on 9.2.1
  In-Reply-To: <001101cdb686$b80fd290$282f77b0$@de>
  References: <006a01cdb5fe$f8400c00$e8c02400$@de> <22948.1351539417@sss.pgh.pa.us> <001101cdb686$b80fd290$282f77b0$@de>

* 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