Bug when retrieving money datatype.

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Bug when retrieving money datatype.
Дата
Msg-id jb3j7b$s3p$1@dough.gmane.org
обсуждение исходный текст
Ответы Re: Bug when retrieving money datatype.  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
Hello,

columns with type "money" are reported as Types.DOUBLE by the JDBC driver.

However using ResultSet.getDouble() (or getObject()) on those columns throws an error:

Bad value for type double : €100,00
(SQL State=22003)

It seems that for money columns, only getString() works properly which doesn't really make sense. It breaks
applicationswhich assume that ResultSet.getDouble() can be used on a column that is identified as Types.DOUBLE 

I would at least expect ResultSet.getObject() to work properly on those columns.

Regards
Thomas

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: eclipse update source?
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: Bug when retrieving money datatype.