Re: passing array to database function

Поиск
Список
Период
Сортировка
От Achilleus Mantzios
Тема Re: passing array to database function
Дата
Msg-id Pine.LNX.4.44.0602071403550.6338-100000@matrix.gatewaynet.com
обсуждение исходный текст
Ответ на Re: passing array to database function  (Richard Huxton <dev@archonet.com>)
Список 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



В списке pgsql-sql по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: passing array to database function
Следующее
От: Vic Rowan
Дата:
Сообщение: problem referencing an attrib which is not unique