From: Ashish Jain <ashjain2@gmail.com>
To: John Lister <john.lister@kickstone.com>
Cc: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
Cc: richard.broersma@gmail.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bad value for type BigDecimal : Y
Date: Tue, 16 Jun 2009 13:52:18 +0530
Message-ID: <14af40510906160122t60d30e48r828cb8acf7804bd0@mail.gmail.com> (raw)
In-Reply-To: <4A3206E2.4070508@kickstone.com>
References: <14af40510906110701g15f5f9edx1178b96a0237bcd0@mail.gmail.com>
<4A313647.2020705@nitorcreations.com>
<14af40510906112316q67c62e2eu5dae171911bac1a1@mail.gmail.com>
<4A3206E2.4070508@kickstone.com>
John/Mikko/Richard,
Thanks a lot for all your help on this issue.
I was able to resolve this problem by setting the following property
<property name="openjpa.jdbc.DBDictionary"
value="postgres(StoreCharsAsNumbers=false)"/>
Thanks
Ashish
On Fri, Jun 12, 2009 at 1:12 PM, John Lister <john.lister@kickstone.com>wrote:
> 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
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: ashjain2@gmail.com, john.lister@kickstone.com, mikko.tiihonen@nitorcreations.com, richard.broersma@gmail.com
Subject: Re: Bad value for type BigDecimal : Y
In-Reply-To: <14af40510906160122t60d30e48r828cb8acf7804bd0@mail.gmail.com>
References: <14af40510906110701g15f5f9edx1178b96a0237bcd0@mail.gmail.com> <4A313647.2020705@nitorcreations.com> <14af40510906112316q67c62e2eu5dae171911bac1a1@mail.gmail.com> <4A3206E2.4070508@kickstone.com> <14af40510906160122t60d30e48r828cb8acf7804bd0@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox