Re: arrays as parameters in callableStatements

Поиск
Список
Период
Сортировка
От J.
Тема Re: arrays as parameters in callableStatements
Дата
Msg-id 20060515042523.88374.qmail@web54207.mail.yahoo.com
обсуждение исходный текст
Ответ на Re: arrays as parameters in callableStatements  (Kris Jurka <books@ejurka.com>)
Ответы Re: arrays as parameters in callableStatements  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc
Thanks, I thought that might be an issue, but looking at the API, I don't see how to convert an array or ArrayList to an Array object or back.  Any tips on where to look?

Kris Jurka <books@ejurka.com> wrote:


On Sun, 14 May 2006, J. wrote:

> I've got a PL/pgSQL stored function in my database and I'm trying to
> figure out how to call it from my admin script. Some of the parameters
> are ArrayList objects of strings and it returns an array that I want to
> read to determine what the function actually did. Here is the function
> header(?):
>
> String[] results = stmt.getArray(1);
>
> I'm getting a compiler error "Incompatible Types" on the second to last
> line.

getArray returns a java.sql.Array, not a String[]. Also the JDBC driver
does not know how to interpret array parameters that are not sent in via
setArray or setObject with a java.sql.Array.

Kris Jurka


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend


Get amazing travel prices for air and hotel in one click on Yahoo! FareChase

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: arrays as parameters in callableStatements
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: postgreSQL or derby for an enterprise application