Re: How to modify my class inherited from java.sql.Array

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: How to modify my class inherited from java.sql.Array
Дата
Msg-id Pine.BSO.4.64.0704161240300.24838@leary.csoft.net
обсуждение исходный текст
Ответ на How to modify my class inherited from java.sql.Array  (vasylenko@uksatse.org.ua)
Список pgsql-jdbc

On Mon, 16 Apr 2007, vasylenko@uksatse.org.ua wrote:

> I need to update (and insert too) an Array type into table via JDBC. Array
> consist of Strings;
>
> The method ResultSet -> setObject(i,arrayClassObject) � - �works well.
>
> But after the method ResultSet -> �updateRow() generate the exception
> ClassCastException.
>
> How can I modify my ArrayClass to avoid such exception?
>

Actually it's a mistake in the driver.  The switch needs to accomodate
Types.ARRAY.  I've applied a fix to cvs for the 8.0, 8.1, 8.2, and head
branches and will go out in the next release (hopefully in about a week).
A jar file built with the fix is available here:

http://www.ejurka.com/pgsql/jars/va/

Kris Jurka

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Bug in timezone-parsing?
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Prepared Statements: Inefficient Type Conversion?