pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Broersma <richard.broersma@gmail.com>
To: Ashish Jain <ashjain2@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bad value for type BigDecimal : Y
Date: Thu, 11 Jun 2009 09:30:50 -0700
Message-ID: <396486430906110930s33c6f95bjc6848775d20049df@mail.gmail.com> (raw)
In-Reply-To: <14af40510906110701g15f5f9edx1178b96a0237bcd0@mail.gmail.com>
References: <14af40510906110701g15f5f9edx1178b96a0237bcd0@mail.gmail.com>

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



view thread (8+ messages)  latest in thread

Message-ID: <396486430906110930s33c6f95bjc6848775d20049df@mail.gmail.com>
Permalink:  ../396486430906110930s33c6f95bjc6848775d20049df@mail.gmail.com/
Also on:    postgresql.org/message-id/396486430906110930s33c6f95bjc6848775d20049df@mail.gmail.com

 · 

reply

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: richard.broersma@gmail.com, ashjain2@gmail.com
  Subject: Re: Bad value for type BigDecimal : Y
  In-Reply-To: <396486430906110930s33c6f95bjc6848775d20049df@mail.gmail.com>
  References: <14af40510906110701g15f5f9edx1178b96a0237bcd0@mail.gmail.com> <396486430906110930s33c6f95bjc6848775d20049df@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