Skip site navigation (1) Skip section navigation (2)

Re: Exception storing ipaddress with JBoss after upgrade to

From: Joost Kraaijeveld <J(dot)Kraaijeveld(at)Askesis(dot)nl>
To: Dave Cramer <pg(at)fastcrypt(dot)com>
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Exception storing ipaddress with JBoss after upgrade to
Date: 2005-09-27 18:53:09
Message-ID: 1127847189.3745.9.camel@Panoramix (view raw or flat)
Thread:
Lists: pgsql-jdbc
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(dot)Kraaijeveld(at)Askesis(dot)nl
web: www.askesis.nl 



In response to

Responses

pgsql-jdbc by date

Next:From: Oliver JowettDate: 2005-09-28 00:20:19
Subject: Re: Exception storing ipaddress with JBoss after upgrade to
Previous:From: Alfredo RicoDate: 2005-09-27 18:53:02
Subject: Re: Trouble with PreparedStatement.setBinaryData or setBytes()

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group