Re: passing array as parameters to PrepareStatement or callable - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: passing array as parameters to PrepareStatement or callable
Date
Msg-id 43811145.6080004@opencloud.com
Whole thread Raw
In response to Re: passing array as parameters to PrepareStatement or callable statement.[setObject() or setArray()]  (Jojo Paderes <jojo.paderes@gmail.com>)
Responses Re: passing array as parameters to PrepareStatement or callable statement.[setObject() or setArray()]
List 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

pgsql-jdbc by date:

Previous
From: Aaron Mulder
Date:
Subject: PreparedStatement.getParameterMetaData
Next
From: Oliver Jowett
Date:
Subject: Re: PreparedStatement.getParameterMetaData