Re: passing array as parameters to PrepareStatement or callable

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Jojo Paderes <jojo(dot)paderes(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: passing array as parameters to PrepareStatement or callable
Date: 2005-11-21 00:13:57
Message-ID: 43811145.6080004@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2005-11-21 00:24:37 Re: PreparedStatement.getParameterMetaData
Previous Message Aaron Mulder 2005-11-20 16:49:36 PreparedStatement.getParameterMetaData