From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nils Gösche <cartan@cartan.de>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Empty bytea values on 9.2.1
Date: Mon, 29 Oct 2012 15:36:57 -0400
Message-ID: <22948.1351539417@sss.pgh.pa.us> (raw)
In-Reply-To: <006a01cdb5fe$f8400c00$e8c02400$@de>
References: <006a01cdb5fe$f8400c00$e8c02400$@de>
=?utf-8?Q?Nils_G=C3=B6sche?= <cartan@cartan.de> writes:
> On an 8.4 installation, I have a table with a bytea column. In some rows, the
> value of this column has length 0. When I query that table with a normal SELECT,
> using the ODBC driver from C#, I get a byte[] object of length 0 on those rows.
> So far so good.
> Now, I dumped the database and restored it on a 9.2.1 installation.
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.
If not, you many need to set "bytea_output" to "escape".
regards, tom lane
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: tgl@sss.pgh.pa.us, cartan@cartan.de
Subject: Re: Empty bytea values on 9.2.1
In-Reply-To: <22948.1351539417@sss.pgh.pa.us>
References: <006a01cdb5fe$f8400c00$e8c02400$@de> <22948.1351539417@sss.pgh.pa.us>
* 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