Skip site navigation (1) Skip section navigation (2)

Re: passing array as parameters to PrepareStatement or callable statement.[setObject() or setArray()]

From: Jojo Paderes <jojo(dot)paderes(at)gmail(dot)com>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: passing array as parameters to PrepareStatement or callable statement.[setObject() or setArray()]
Date: 2005-11-21 05:56:16
Message-ID: 65f9ddfb0511202156s52d99577qfc652b44838db1cb@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
Ah, didn't notice that. Thanks for the clarification :-)

On 11/21/05, Oliver Jowett <oliver(at)opencloud(dot)com> wrote:
> 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
>


--
You can make the world a better place for humanity!
http://gawadkalinga.org
http://www.childrenshour.org.ph
http://www.handsonmla.org

http://groups.yahoo.com/group/pinoyjug
http://jojopaderes.blogsome.com
http://jojopaderes.multiply.com

"In preparing for battle I have always found that plans are useless,
but planning is indispensable." - Eisenhower

In response to

pgsql-jdbc by date

Next:From: Oliver JowettDate: 2005-11-21 06:38:28
Subject: Re: Creating a database using ant
Previous:From: Jan de VisserDate: 2005-11-21 05:19:11
Subject: Re: Creating a database using ant

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group