X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 89B7CD1B173 for ; Sun, 11 Jul 2004 11:58:09 -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 40042-08 for ; Sun, 11 Jul 2004 14:58:14 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 0416CD1B25F for ; Sun, 11 Jul 2004 11:58:05 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BjfjN-0001MW-00; Mon, 12 Jul 2004 02:55:05 +1200 Message-ID: <40F154AA.8040800@opencloud.com> Date: Mon, 12 Jul 2004 02:54:34 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Antony Paul Cc: pgsql-jdbc@postgresql.org Subject: Re: No class found for inet References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200407/93 X-Sequence-Number: 10477 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