Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: passing array(java) to postgre sql function - Mailing list pgsql-sql

From Markus Schaber
Subject Re: passing array(java) to postgre sql function
Date
Msg-id [email protected]
Whole thread Raw
In response to passing array(java) to postgre sql function  ("bond" <[email protected]>)
List pgsql-sql
Hi, Bond,

bond wrote:

> public Object getArray(){
>     ArrayList temp = new ArrayList();
>     temp.add("MMMM");
>     temp.add("NNNN");
>     temp.add("TTTTT");
>     temp.add("QQQQQ");
>     return temp.toArray();
>   }
> After this i am passing   this.getArray() values to database.

As a first guess, have a look at java.sql.Array interface.

And maybe the people on the [email protected] mailing list know
better. :-)

HTH,
Markus


-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org


pgsql-sql by date:

Previous
From: "padmanabha konkodi"
Date:
Subject: restircting rows
Next
From: "A. Kretschmer"
Date:
Subject: Re: restircting rows