Re: Prepare Statement

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Prepare Statement
Дата
Msg-id 40D39942.4010100@opencloud.com
обсуждение исходный текст
Ответ на Re: Prepare Statement  ("Jie Liang" <jie@stbernard.com>)
Список pgsql-jdbc
Jie Liang wrote:
> Nope, it will get same error msg:
> Myfunction(text) does net exist

Hm, indeed. I just looked at the code and the plain setObject() path
seems slightly broken: it always passes PG_TEXT, not the PGobject's type.

However, the setObject variant that takes a target SQL type seems ok.
Try this:

>    stmt.setObject(1, obj, Types.OTHER);

-O

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

Предыдущее
От: "Jie Liang"
Дата:
Сообщение: Re: Prepare Statement
Следующее
От: "Jie Liang"
Дата:
Сообщение: Re: Prepare Statement