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

Поиск
Список
Период
Сортировка
От Matt Magoffin
Тема Re: how to set a PreparedStatement column of XML type in 8.3?
Дата
Msg-id 50955.192.168.1.108.1197864986.squirrel@msqr.us
обсуждение исходный текст
Ответ на Re: how to set a PreparedStatement column of XML type in 8.3?  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc
>> What about with calls to setObject(int, Object, int) when a String is
>> passed in and the type set to Types.OTHER? Would it be possible then...
>> say if Object is a String, to treat it as if the stringtype=unspecified
>> parameter was set?
>
> I've implemented this for the 8.3 driver in CVS.  It takes
> Object.toString() of anything given with Types.OTHER, so it doesn't
> necessarily need to be in String form already.
>
> I've uploaded some jars here if you want to give it a test.
>
> http://ejurka.com/pgsql/jars/mm/

Yep, that did the trick for me. Thanks!

-- m@

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: how to set a PreparedStatement column of XML type in 8.3?
Следующее
От: abyss
Дата:
Сообщение: DatabaseMetaData and numeric array