Re: Empty bytea values on 9.2.1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nils Gösche <cartan(at)cartan(dot)de>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: Empty bytea values on 9.2.1
Date: 2012-10-29 19:36:57
Message-ID: 22948.1351539417@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

=?utf-8?Q?Nils_G=C3=B6sche?= <cartan(at)cartan(dot)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

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message psqlodbc-bugs 2012-10-29 21:15:24 [psqlodbc-Bugs][1011246] Windows 2012 64bit ODBC Administrator crashes
Previous Message Lionel Elie Mamane 2012-10-29 18:32:07 Re: PostgreSQL driver not visible in windows control panel