Re: how to set a PreparedStatement column of XML type in 8.3?

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: how to set a PreparedStatement column of XML type in 8.3?
Дата
Msg-id Pine.BSO.4.64.0712140524590.15803@leary.csoft.net
обсуждение исходный текст
Ответ на Re: how to set a PreparedStatement column of XML type in 8.3?  ("Matt Magoffin" <postgresql.org@msqr.us>)
Ответы Re: how to set a PreparedStatement column of XML type in 8.3?  ("Matt Magoffin" <postgresql.org@msqr.us>)
Список pgsql-jdbc

On Fri, 14 Dec 2007, Matt Magoffin wrote:

> Do you think it's worth considering having the 8.3 driver do this
> automatic conversion of String <-> xml, so that users don't have to use
> PGObject or set the stringtype=unspecified connection parameter?

The driver can't really do that.  At the time you say setString, the
driver doesn't know that the real target type is xml, so the driver's only
options are to set the parameter type to varchar (String) or unknown (the
unspecified URL parameter).

Kris Jurka


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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: Slow query after upgrades
Следующее
От: Altaf Malik
Дата:
Сообщение: Re: JDBC causing the connection to close after executing a COPY command