Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 087B39FA31A for ; Tue, 6 Feb 2007 23:49:00 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 50609-04 for ; Tue, 6 Feb 2007 23:48:56 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from titan.startnet.cz (unknown [82.113.63.73]) by postgresql.org (Postfix) with ESMTP id 071819FA65C for ; Tue, 6 Feb 2007 23:48:55 -0400 (AST) Received: (qmail 14054 invoked from network); 7 Feb 2007 04:48:52 +0100 Received: from 89-24-5-16.customers.t-mobile.cz (HELO ?172.24.1.163?) (miroslav.sulc@startnet.cz@89.24.5.16) by titan.local.startnet.cz with ESMTPA; 7 Feb 2007 04:48:52 +0100 Message-ID: <45C94C0F.8080803@startnet.cz> Date: Wed, 07 Feb 2007 04:48:31 +0100 From: =?ISO-8859-2?Q?Miroslav_=A9ulc?= Organization: StartNet s.r.o. User-Agent: Thunderbird 1.5.0.9 (X11/20061224) MIME-Version: 1.0 CC: pgsql-jdbc@postgresql.org Subject: Re: JDBC and arrays References: <45C295F4.4030100@startnet.cz> <45C304FB.6020702@startnet.cz> <45C34D67.6000509@ev.net> In-Reply-To: <45C34D67.6000509@ev.net> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.562 tagged_above=0 required=5 tests=AWL, BAYES_50 X-Spam-Level: X-Archive-Number: 200702/35 X-Sequence-Number: 16591 Russell, thank you for the link. I have all the logic already implemented either in my classes or I use system one (like java.net.Inet4Address) so what I need (and have) is just a simple implementation of PGobject which returns correct type and the value. Best regards, -- Miroslav Šulc Russell Francis napsal(a): > Miroslav Šulc wrote: > >> Thank you for explanation. If I still want to write inet[] data, is it >> sufficient to implement PGobject so it returns 'inet[]' type and '{ >> "ip", "ip" }' value and pass that to setObject()? >> > > Miroslav, > > I don't know if this will help you but awhile ago I implemented data > types for the JDBC driver for PGinet, PGmacaddr, PGcidr which have been > used successfully by a number of people including myself ;) I would > still like to get them integrated into the driver but haven't had much > time to pursue it. You can find the current version at > > http://oak.cats.ohiou.edu/~rf358197/jdbc/2/ > > I have zero experience using them in an array but if you are using those > data types in PostgreSQL and using Java, the code might be useful to you. > > Kind regards, > Russ >