From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: Richard Huxton <dev@archonet.com>
Cc: padmanabha konkodi <konkodi221@rediffmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: passing array to database function
Date: Tue, 7 Feb 2006 14:11:33 +0200 (EET)
Message-ID: <Pine.LNX.4.44.0602071403550.6338-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <43E87C0A.9030304@archonet.com>
O Richard Huxton Ýãñáøå óôéò Feb 7, 2006 :
> padmanabha konkodi wrote:
> > Â hi everybody,
> >
> > i want to pass Integer array to database function from java
> > precompiled statement.
> >
> > java gives java.sql.Array interface but i dont know which
> > implementing class i have to use in postgre
>
> I don't really "do" java, but have you tried an array of integers for
> your PostgreSQL function? What happened?
The correct list is -jdbc.
Theoritically you would have to write your own implementation
of java.sql.Array.
Practically build a String with the contents you want
e.g.
'{1,2,3,4}'
for a int[] array, and your done.
>
>
--
-Achilleus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: achill@matrix.gatewaynet.com, dev@archonet.com, konkodi221@rediffmail.com
Subject: Re: passing array to database function
In-Reply-To: <Pine.LNX.4.44.0602071403550.6338-100000@matrix.gatewaynet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox