Re: Bad value for type BigDecimal : Y

Поиск
Список
Период
Сортировка
От John Lister
Тема Re: Bad value for type BigDecimal : Y
Дата
Msg-id 4A3206E2.4070508@kickstone.com
обсуждение исходный текст
Ответ на Re: Bad value for type BigDecimal : Y  (Ashish Jain <ashjain2@gmail.com>)
Ответы Re: Bad value for type BigDecimal : Y
Список pgsql-jdbc
Ashish Jain wrote:
> Hi Mikko/Richard,
>
> Thanks for your reply. I do have a column whose length is 1. The
> definition goes something like this
> @Column(updatable=true, name="st_spom_status", nullable=false, length=1)
>   private String status;
>
> Do you think this is what may be the cause of the problem??
>
My first guess is that you have a column defined as a bigdecimal in your
jpa object but it is actually a string in the database one of whose rows
contains the value 'Y'.

JOHN


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

Предыдущее
От: Ashish Jain
Дата:
Сообщение: Re: Bad value for type BigDecimal : Y
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: PreparedStatements with PG specific data types.