Re: Empty bytea values on 9.2.1 - Mailing list pgsql-odbc

From Tom Lane
Subject Re: Empty bytea values on 9.2.1
Date
Msg-id 22948.1351539417@sss.pgh.pa.us
Whole thread Raw
In response to Empty bytea values on 9.2.1  (Nils Gösche <cartan@cartan.de>)
Responses Re: Empty bytea values on 9.2.1  (Nils Gösche <cartan@cartan.de>)
List pgsql-odbc
=?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


pgsql-odbc by date:

Previous
From: Lionel Elie Mamane
Date:
Subject: Re: PostgreSQL driver not visible in windows control panel
Next
From: Nils Gösche
Date:
Subject: Re: Empty bytea values on 9.2.1