Re: Bad value for type BigDecimal : Y

From: Ashish Jain <ashjain2(at)gmail(dot)com>
To: Richard Broersma <richard(dot)broersma(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Bad value for type BigDecimal : Y
Date: 2009-06-11 16:39:12
Message-ID: 14af40510906110939o540ea10cl1632e47278f0af98@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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(dot)broersma(at)gmail(dot)com> wrote:

> On Thu, Jun 11, 2009 at 7:01 AM, Ashish Jain<ashjain2(at)gmail(dot)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
>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Richard Broersma 2009-06-11 16:46:43 Re: Bad value for type BigDecimal : Y
Previous Message Richard Broersma 2009-06-11 16:30:50 Re: Bad value for type BigDecimal : Y