X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BEAEAD967F for ; Tue, 27 Sep 2005 15:53:15 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90183-04 for ; Tue, 27 Sep 2005 18:53:10 +0000 (GMT) Received: from obelix.askesis.nl (laudanum.demon.nl [82.161.125.16]) by svr1.postgresql.org (Postfix) with ESMTP id BED74D87FA for ; Tue, 27 Sep 2005 15:53:09 -0300 (ADT) Received: obelix.askesis.nl 172.31.0.1 from 172.31.1.8 172.31.1.8 via HTTP with MS-WebStorage 6.0.6249 Received: from Panoramix by obelix.askesis.nl; 27 Sep 2005 20:53:09 +0200 Subject: Re: Exception storing ipaddress with JBoss after upgrade to From: Joost Kraaijeveld To: Dave Cramer Cc: "pgsql-jdbc@postgresql.org" In-Reply-To: <9A7B5B70-61C1-4573-B3BC-31D991C7B02F@fastcrypt.com> References: <1127804795.4050.40.camel@Panoramix> <9A7B5B70-61C1-4573-B3BC-31D991C7B02F@fastcrypt.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 27 Sep 2005 20:53:09 +0200 Message-Id: <1127847189.3745.9.camel@Panoramix> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.098 required=5 tests=[AWL=0.048, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200509/118 X-Sequence-Number: 13903 Hi Dave, On Tue, 2005-09-27 at 09:48 -0400, Dave Cramer wrote: > Joost, > > The new driver uses server side prepared statements and is much more > particular about the types being sent. > > You can force v2 protocol, or create a PGInet type extending PGObject I do not really understand why: the postgresql log file shows that the error is happening at the backend where no Java is running (and I can also not remember that I had to write special code in ODBC: I just send a string with a correct ip address and the database backend converted it to a inet, but that was long ago and I may remember wrong). All examples in the postgresql docs (e.g. example 11-1 setting up a partial index) where the inet type is used an ordinary string is passed to the backend. -- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 e-mail: J.Kraaijeveld@Askesis.nl web: www.askesis.nl