Re: Prepare Statement

Поиск
Список
Период
Сортировка
От Jie Liang
Тема Re: Prepare Statement
Дата
Msg-id E7E213858379814A9AE48CA6754F5ECB034519CD@mail01.stbernard.com
обсуждение исходный текст
Ответ на Prepare Statement  ("Jie Liang" <jie@stbernard.com>)
Список pgsql-jdbc
It works.
Thanks.

Jie Liang

-----Original Message-----
From: Oliver Jowett [mailto:oliver@opencloud.com]
Sent: Friday, June 18, 2004 6:39 PM
To: Jie Liang
Cc: Kris Jurka; pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Prepare Statement


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 по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Prepare Statement
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: proposal for CallableStatements to handle multiple out