Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 5BDED9FB2A0 for ; Sat, 3 Feb 2007 15:42:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 71009-05 for ; Sat, 3 Feb 2007 15:42:16 -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 5DB369FA50C for ; Sat, 3 Feb 2007 15:42:17 -0400 (AST) Received: (qmail 22843 invoked from network); 3 Feb 2007 20:42:12 +0100 Received: from 89-24-5-70.customers.t-mobile.cz (HELO ?172.24.56.44?) (miroslav.sulc@startnet.cz@89.24.5.70) by titan.local.startnet.cz with ESMTPA; 3 Feb 2007 20:42:12 +0100 Message-ID: <45C4E585.5080305@startnet.cz> Date: Sat, 03 Feb 2007 20:41:57 +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 To: pgsql-jdbc@postgresql.org Subject: Re: JDBC and arrays References: <45C295F4.4030100@startnet.cz> <45C304FB.6020702@startnet.cz> <45C4E1A6.3020401@startnet.cz> In-Reply-To: <45C4E1A6.3020401@startnet.cz> 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=1.268 tagged_above=0 required=5 tests=AWL, BAYES_50, RCVD_IN_BL_SPAMCOP_NET X-Spam-Level: * X-Archive-Number: 200702/28 X-Sequence-Number: 16584 I got it. I read it as string and then I parse the string to get the values. -- Miroslav Šulc Miroslav Šulc napsal(a): > I got writing of inet[] working through object that implements > PGobject (you were right, it works only with _inet), but I cannot read > inet[]. I thought I'll get String[] through getArray(index).getArray() > but instead I get an exception on getArray(index). What is the correct > way to read inet[]? > > Caused by: org.postgresql.util.PSQLException: Method > org.postgresql.jdbc3g.Jdbc3gArray.getArrayImpl(long,int,Map) is not > implemented. > at org.postgresql.Driver.notImplemented(Driver.java:728) > at > org.postgresql.jdbc2.AbstractJdbc2Array.getArrayImpl(AbstractJdbc2Array.java:228) > > at > org.postgresql.jdbc2.AbstractJdbc2Array.getArray(AbstractJdbc2Array.java:71) > > at > cz.startnet.utils.java.sql.ResultSetUtils.getValue(ResultSetUtils.java:253) > > > -- > Miroslav Šulc