X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id ED2A8D7986 for ; Sun, 20 Nov 2005 20:14:01 -0400 (AST) 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 80764-05 for ; Mon, 21 Nov 2005 00:14:03 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by svr1.postgresql.org (Postfix) with ESMTP id 55EF5D781D for ; Sun, 20 Nov 2005 20:13:58 -0400 (AST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EdzJm-0004en-Ct; Mon, 21 Nov 2005 13:13:58 +1300 Message-ID: <43811145.6080004@opencloud.com> Date: Mon, 21 Nov 2005 13:13:57 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051009) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jojo Paderes CC: pgsql-jdbc@postgresql.org Subject: Re: passing array as parameters to PrepareStatement or callable References: <4bd3e1480511120921y6359a0achab46a321b4802219@mail.gmail.com> <4bd3e1480511131556o58dbeae8y7a08dc55927010e0@mail.gmail.com> <65f9ddfb0511200803q6df02e33l52589649da2be071@mail.gmail.com> In-Reply-To: <65f9ddfb0511200803q6df02e33l52589649da2be071@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/127 X-Sequence-Number: 14225 Jojo Paderes wrote: > Is the Array class used in the method refers to java.sql.Array? If > yes, I think it's not possible to use that to create an object since > it is an interface. Yes it's java.sql.Array, but the code is creating an instance of an anonymous inner class that implements Array, which is fine: >> Array a = new Array() { >> public String getBaseTypeName() {return "int4";} [...] -O