From: | Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com> |
---|---|
To: | Richard Huxton <dev(at)archonet(dot)com> |
Cc: | padmanabha konkodi <konkodi221(at)rediffmail(dot)com>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: passing array to database function |
Date: | 2006-02-07 12:11:33 |
Message-ID: | Pine.LNX.4.44.0602071403550.6338-100000@matrix.gatewaynet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Vic Rowan | 2006-02-07 13:45:09 | problem referencing an attrib which is not unique |
Previous Message | Richard Huxton | 2006-02-07 10:52:58 | Re: passing array to database function |