Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 495C5633B7D for ; Thu, 11 Jun 2009 13:39:15 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 03243-06 for ; Thu, 11 Jun 2009 13:39:12 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qy0-f195.google.com (mail-qy0-f195.google.com [209.85.221.195]) by mail.postgresql.org (Postfix) with ESMTP id A1977632CD8 for ; Thu, 11 Jun 2009 13:39:13 -0300 (ADT) Received: by qyk33 with SMTP id 33so2165569qyk.15 for ; Thu, 11 Jun 2009 09:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=OtUAiCtjEP+Tt4W0/ECImJxcsxPA47sOW8f88dwXi3Q=; b=h8m6o8cirQnMy086++q+EalpF/RhfDZPAsSV0VXI+kqrS4wg74MnqDSCJGVYNhIxEL +x8lqUhc4Swk5ZwjKXHlAnFMol18iWrLHnYr1rjeu68Zt8Tbfpvflme2An2uKRTuxAUF bzngrH/95KMQcrB9NHGXR/nMIQWn3G0Rq28Pk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=QyiKksokfL9mumxt+3BhkXo+YfvXXJpbAd0DZPSXt+QlJcYOYH8BLgFe/O0gyMninu NPj4qle/VAGEzH10OP4eaX81y8n/ukSwZxO0HcaKfo6Zcxeu7Vf6s44zBy7iSgmN65JS koHq6rJ0IGPwO4FTwafMe7qOWEOkvgbWmMyx0= MIME-Version: 1.0 Received: by 10.220.72.18 with SMTP id k18mr2310067vcj.83.1244738352676; Thu, 11 Jun 2009 09:39:12 -0700 (PDT) In-Reply-To: <396486430906110930s33c6f95bjc6848775d20049df@mail.gmail.com> References: <14af40510906110701g15f5f9edx1178b96a0237bcd0@mail.gmail.com> <396486430906110930s33c6f95bjc6848775d20049df@mail.gmail.com> Date: Thu, 11 Jun 2009 22:09:12 +0530 Message-ID: <14af40510906110939o540ea10cl1632e47278f0af98@mail.gmail.com> Subject: Re: Bad value for type BigDecimal : Y From: Ashish Jain To: Richard Broersma Cc: pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=0016e6464e12598083046c153b67 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200906/53 X-Sequence-Number: 19717 --0016e6464e12598083046c153b67 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 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 > --0016e6464e12598083046c153b67 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Richard,
=A0
Thanks for your reply!!

None of the fields are defind as Big Decimal.I have integer, chara= cter and timestamp as the variable types in my SQL statments
Thanks
Ashish
On Thu, Jun 11, 2009 at 10:00 PM, Richard Broers= ma <rich= ard.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 =A0=A0=A0 at
> org.postgresql.jdbc2.AbstractJdbc2Resu= ltSet.toBigDecimal(AbstractJdbc2ResultSet.java:2710)

I'm c= urious what the column definition is for the mapped field that is
defined as a BigDecimal in your JPA ORM. =A0Is it possible for
PostgreSQ= L's numeric data to represent values that exceed the limits
of java = BigDecimal class?


--
Regards,
Rich= ard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/= lapug

--0016e6464e12598083046c153b67--