pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Exception storing ipaddress with JBoss after upgrade to 8.0-312.jdbc3
Date: Tue, 27 Sep 2005 09:06:35 +0200
Message-ID: <1127804795.4050.40.camel@Panoramix> (raw)

Hi,

I am trying to store an ipaddress in a PostgreSQL column of a INET type.
This used to work with pg74.216.jdbc3 but after an upgrade to
postgresql-8.0-312.jdbc3  I get an exception:

ERROR: column "ipaddress" is of type inet but expression is of type
character varying.

The PostgreSQL log shows:

LOG:  statement: INSERT INTO accesspoint (objectId, ipAddress,
locationName, macAddress, manufacturer, serialNumber, supplier,
typeName, address) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9)
2005-09-27 08:57:48 [12459] ERROR:  column "ipaddress" is of type inet
but expression is of type character varying
HINT:  You will need to rewrite or cast the expression.

De CMP field is defined as @jboss.jdbc-type VARCHAR and @jboss.sql-type
INET

Is this a known problem? If so, is there a known sollution (and are you
willing to share that sollution ;-))? 

The suggestion about the rewrite/cast hint is not possible because this
is a CMP bean and JBoss takes care of writing that .


-- 
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 





view thread (4+ messages)  latest in thread

Message-ID: <1127804795.4050.40.camel@Panoramix>
Permalink:  ../1127804795.4050.40.camel@Panoramix/
Also on:    postgresql.org/message-id/1127804795.4050.40.camel@Panoramix

 · 

reply

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
  Subject: Re: Exception storing ipaddress with JBoss after upgrade to 8.0-312.jdbc3
  In-Reply-To: <1127804795.4050.40.camel@Panoramix>
  References: <1127804795.4050.40.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