Skip site navigation (1) Skip section navigation (2)

Re: Bad value for type BigDecimal : Y

From: Richard Broersma <richard(dot)broersma(at)gmail(dot)com>
To: Ashish Jain <ashjain2(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Bad value for type BigDecimal : Y
Date: 2009-06-11 16:30:50
Message-ID: 396486430906110930s33c6f95bjc6848775d20049df@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
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

pgsql-jdbc by date

Next:From: Ashish JainDate: 2009-06-11 16:39:12
Subject: Re: Bad value for type BigDecimal : Y
Previous:From: Ashish JainDate: 2009-06-11 14:01:14
Subject: Bad value for type BigDecimal : Y

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group