Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id A17549FB22F for ; Wed, 17 Jan 2007 13:14:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 70019-06-2 for ; Wed, 17 Jan 2007 13:13:54 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.ecircle.de (mail.ecircle.de [195.140.186.200]) by postgresql.org (Postfix) with ESMTP id B39119FB2AB for ; Wed, 17 Jan 2007 13:13:54 -0400 (AST) Received: from einstein.muc.ecircle.de (einstein.muc.ecircle.de [192.168.1.7]) by mail.ecircle.de (READY) with ESMTP id C9B2B11C032; Wed, 17 Jan 2007 18:13:53 +0100 (CET) Received: from [192.168.1.91] ([192.168.1.91]) by einstein.muc.ecircle.de with Microsoft SMTPSVC(6.0.3790.1830); Wed, 17 Jan 2007 18:13:53 +0100 Subject: Re: Strange error using postgres 8.2 + JDBC 8.2 driver From: Csaba Nagy To: Kris Jurka Cc: Postgres JDBC In-Reply-To: References: <1169053117.22307.293.camel@coppola.muc.ecircle.de> Content-Type: text/plain Message-Id: <1169054033.22307.299.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 17 Jan 2007 18:13:53 +0100 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Jan 2007 17:13:53.0721 (UTC) FILETIME=[DD46A290:01C73A5A] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/107 X-Sequence-Number: 16472 > This will actually happen in 8.1 servers if you are running the latest > releases. Previously, inserting something like "a\0b" would silently > truncate at the null byte, but now it's an error. So, check your data for > \0. Well, if the 0 bytes are in the byte array, I would expect that to be OK, the driver should escape them, right ? (I actually tested this, it works). Other than that, the parameters are plain strings and primitives, so I would also be surprised to be able to insert invalid 0 bytes in those... Could it be that we have some strange characters not properly encoded by the driver ? Thanks, Csaba.