Re: Errors using JDBC batchUpdate with plpgsql function

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Errors using JDBC batchUpdate with plpgsql function
Дата
Msg-id CADK3HHLeAnkZN_3GYATdXfa0UycuqKhD+pQCRjYSbK8tRs7_xg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Errors using JDBC batchUpdate with plpgsql function  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-general
The logs from the server would be useful

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

On 4 May 2015 at 07:05, Thomas Kellerer <spam_eater@gmx.net> wrote:
Hannes Erven schrieb am 04.05.2015 um 12:31:
> Hi,
>
>
>>          String sql = "select test_user_result_insert_func(?, ?, ?);";
>
> You can't call functions via JDBC like that.

That's perfectly valid - unless the function uses out parameters or ref cursors.

I am however unsure about batched statements here. So trying CallableStatement is definitely worth a shot.




--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: Errors using JDBC batchUpdate with plpgsql function
Следующее
От: sanjeetkamble
Дата:
Сообщение: Re: Setting up a database for 10000 concurrent users