Re: Mapping Java BigDecimal

From: Kris Jurka <books(at)ejurka(dot)com>
To: Jakub Bednář <jakub(dot)bednar(at)b2bcentrum(dot)cz>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Mapping Java BigDecimal
Date: 2010-01-18 07:52:30
Message-ID: alpine.BSO.2.00.1001180250020.30607@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Mon, 18 Jan 2010, Jakub Bedn?? wrote:

> If I store to "BigDecimal column" number without decimal, e.g. "3", than
> Oracle JDBC driver return "3", but PostgreSQL JDBC driver return "3.00".
>
> Is there some way (mapping, server setup, jdbc driver setup,...) how reach
> return number without trailing zeroes on decimal position?

Nope. The behavior here is that of the server data type and there's
nothing the JDBC driver can do about it.

Kris Jurka

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Craig Ringer 2010-01-18 08:30:56 Re: Mapping Java BigDecimal
Previous Message Kris Jurka 2010-01-18 07:49:19 Re: Bug in AbstractJdbc2BlobClob