From: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
To: Dave Cramer <pg@fastcrypt.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Exception storing ipaddress with JBoss after upgrade to
Date: Tue, 27 Sep 2005 20:53:09 +0200
Message-ID: <1127847189.3745.9.camel@Panoramix> (raw)
In-Reply-To: <9A7B5B70-61C1-4573-B3BC-31D991C7B02F@fastcrypt.com>
References: <1127804795.4050.40.camel@Panoramix>
<9A7B5B70-61C1-4573-B3BC-31D991C7B02F@fastcrypt.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: J.Kraaijeveld@Askesis.nl, pg@fastcrypt.com
Subject: Re: Exception storing ipaddress with JBoss after upgrade to
In-Reply-To: <1127847189.3745.9.camel@Panoramix>
References: <1127804795.4050.40.camel@Panoramix> <9A7B5B70-61C1-4573-B3BC-31D991C7B02F@fastcrypt.com> <1127847189.3745.9.camel@Panoramix>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox