pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Antony Paul <antonypaul24@hotmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: No class found for inet
Date: Mon, 12 Jul 2004 02:54:34 +1200
Message-ID: <40F154AA.8040800@opencloud.com> (raw)
In-Reply-To: <BAY15-DAV12K7aI4z93000b3af8@hotmail.com>
References: <BAY15-DAV12K7aI4z93000b3af8@hotmail.com>

Antony Paul wrote:
> Hi all,
>     I am using Apache Commons BeanUtils RowSetDynaClass for disconnected
> resul tsets. But it gives error when I pass a ResultSet which contains an
> inet column type what to do with it.

What is the error?

> Why postgres is not providing classes
> for postgres specific data types ?.

Because noone has written support for them yet. java.net.InetAddress is 
not a good data container for the inet type as it does not store netmask 
information, so we'd need a postgresql-specific type.

It's pretty easy to write code to support new types -- take a look at 
how the geometric types (org.postgresql.geometric.*) are supported. Once 
written you can either register the class with the driver at runtime 
(PGConnection.addDataType) or patch the driver to know about the new 
class automatically.

> Using Postgres 7.3

What JDBC driver version?

-O



view thread (6+ messages)

Message-ID: <40F154AA.8040800@opencloud.com>
Permalink:  ../40F154AA.8040800@opencloud.com/
Also on:    postgresql.org/message-id/40F154AA.8040800@opencloud.com

 · 

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: oliver@opencloud.com, antonypaul24@hotmail.com
  Subject: Re: No class found for inet
  In-Reply-To: <40F154AA.8040800@opencloud.com>
  References: <BAY15-DAV12K7aI4z93000b3af8@hotmail.com> <40F154AA.8040800@opencloud.com>

* 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