pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedpassing array to database function
3+ messages / 3 participants
[nested] [flat]
* passing array to database function
@ 2006-02-07 10:36 padmanabha konkodi <konkodi221@rediffmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: padmanabha konkodi @ 2006-02-07 10:36 UTC (permalink / raw)
To: pgsql-sql
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
regards
ptrashantha.k.p
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: passing array to database function
@ 2006-02-07 10:52 Richard Huxton <dev@archonet.com>
parent: padmanabha konkodi <konkodi221@rediffmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Richard Huxton @ 2006-02-07 10:52 UTC (permalink / raw)
To: padmanabha konkodi <konkodi221@rediffmail.com>; +Cc: pgsql-sql
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?
--
Richard Huxton
Archonet Ltd
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: passing array to database function
@ 2006-02-07 12:11 Achilleus Mantzios <achill@matrix.gatewaynet.com>
parent: Richard Huxton <dev@archonet.com>
0 siblings, 0 replies; 3+ messages in thread
From: Achilleus Mantzios @ 2006-02-07 12:11 UTC (permalink / raw)
To: Richard Huxton <dev@archonet.com>; +Cc: padmanabha konkodi <konkodi221@rediffmail.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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2006-02-07 12:11 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-02-07 10:36 passing array to database function padmanabha konkodi <konkodi221@rediffmail.com>
2006-02-07 10:52 ` Richard Huxton <dev@archonet.com>
2006-02-07 12:11 ` Achilleus Mantzios <achill@matrix.gatewaynet.com>
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