From: Ashish Jain <ashjain2@gmail.com>
To: Richard Broersma <richard.broersma@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bad value for type BigDecimal : Y
Date: Thu, 11 Jun 2009 22:09:12 +0530
Message-ID: <14af40510906110939o540ea10cl1632e47278f0af98@mail.gmail.com> (raw)
In-Reply-To: <396486430906110930s33c6f95bjc6848775d20049df@mail.gmail.com>
References: <14af40510906110701g15f5f9edx1178b96a0237bcd0@mail.gmail.com>
<396486430906110930s33c6f95bjc6848775d20049df@mail.gmail.com>
Hi Richard,
Thanks for your reply!!
None of the fields are defind as Big Decimal.I have integer, character and
timestamp as the variable types in my SQL statments
Thanks
Ashish
On Thu, Jun 11, 2009 at 10:00 PM, Richard Broersma <
richard.broersma@gmail.com> wrote:
> On Thu, Jun 11, 2009 at 7:01 AM, Ashish Jain<ashjain2@gmail.com> wrote:
>
> > I am using postgresql 8.3 with openJPA 1.2.1. I hit the following error
> >
> > org.postgresql.util.
> > PSQLException: Bad value for type BigDecimal : Y at
> >
> org.postgresql.jdbc2.AbstractJdbc2ResultSet.toBigDecimal(AbstractJdbc2ResultSet.java:2710)
>
> I'm curious what the column definition is for the mapped field that is
> defined as a BigDecimal in your JPA ORM. Is it possible for
> PostgreSQL's numeric data to represent values that exceed the limits
> of java BigDecimal class?
>
>
> --
> Regards,
> Richard Broersma Jr.
>
> Visit the Los Angeles PostgreSQL Users Group (LAPUG)
> http://pugs.postgresql.org/lapug
>
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, richard.broersma@gmail.com
Subject: Re: Bad value for type BigDecimal : Y
In-Reply-To: <14af40510906110939o540ea10cl1632e47278f0af98@mail.gmail.com>
References: <14af40510906110701g15f5f9edx1178b96a0237bcd0@mail.gmail.com> <396486430906110930s33c6f95bjc6848775d20049df@mail.gmail.com> <14af40510906110939o540ea10cl1632e47278f0af98@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