Re: Calling PGSQL Stored function thru JDBC

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Calling PGSQL Stored function thru JDBC
Дата
Msg-id Pine.BSO.4.56.0407300128350.4881@leary.csoft.net
обсуждение исходный текст
Ответ на Calling PGSQL Stored function thru JDBC  (Nick Selva <mavles_pgsql@yahoo.com>)
Ответы Re: Calling PGSQL Stored function thru JDBC  (Nick Selva <mavles_pgsql@yahoo.com>)
Список pgsql-jdbc

On Thu, 29 Jul 2004, Nick Selva wrote:

> [my CallableStatement doesn't work.]

You have misnumbered your parameters.  You want to do cs.setString(2, "P")
because that matches with the second "?", and cs.registerOutParameter(1,
Types.VARCHAR) because that is the out parameter.  You also may need to
say "{ ? = call get_state(?) }", note the equal sign.

Kris Jurka


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

Предыдущее
От: Nick Selva
Дата:
Сообщение: Calling PGSQL Stored function thru JDBC
Следующее
От: "Vianen, Jeroen van"
Дата:
Сообщение: PostgreSQL JDBC + Hibernate lose valuable debug info if an exception is thrown