Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TT8ly-0000uI-22 for pgsql-odbc@postgresql.org; Tue, 30 Oct 2012 10:10:14 +0000 Received: from moutng.kundenserver.de ([212.227.126.187]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TT8lq-0004GZ-Uo for pgsql-odbc@postgresql.org; Tue, 30 Oct 2012 10:10:13 +0000 Received: from Endor (business-188-111-109-220.static.arcor-ip.net [188.111.109.220]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0MEg2P-1Tdr4A0JC5-00FciD; Tue, 30 Oct 2012 11:09:59 +0100 From: =?UTF-8?Q?Nils_G=C3=B6sche?= To: "'Tom Lane'" Cc: References: <006a01cdb5fe$f8400c00$e8c02400$@de> <22948.1351539417@sss.pgh.pa.us> In-Reply-To: <22948.1351539417@sss.pgh.pa.us> Subject: Re: Empty bytea values on 9.2.1 Date: Tue, 30 Oct 2012 11:09:57 +0100 Message-ID: <001101cdb686$b80fd290$282f77b0$@de> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac22DMOIHUo+tMgVSGunV707Am9DfwAeIkIg Content-Language: de X-Provags-ID: V02:K0:PDZA79gn10rTQ5KOQvoh94xerrsM7sxihpNGi1Zd3ey nCUhq/rE6OjEJDItNc7tLk31VTR/NRXx0SSnu5yZhRDtB4EY1o U17VTCK3bLvF8yYS6bnrbBm+bPA/KxHcMsSbJ4p+Z/w+xVVL7g gcIjSqFb+m7bixRxNhAJXVT2pEnsSAPecttA1HMQhHanVYnecK NOZH9MRGkxKCrYVFPqpSBVPmRjLamqh3TNTINK+R8ao2OmSx0m ZEPLn7q95qRS0T5EtpSf/TOpjz1Ls4EMD4cY0hGaiaQfj7iud1 veTJD19WqcVqyRPOWm6s6SUekXqExPzxFqXNru4t1l65e+wqrF JJdQx4S+yecY+Eq2PCW8= X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/15 X-Sequence-Number: 10974 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, --=20 Nils G=C3=B6sche "Don't ask for whom the tolls."