pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Jakub Bednář <jakub.bednar@b2bcentrum.cz>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Mapping Java BigDecimal
Date: Mon, 18 Jan 2010 02:52:30 -0500 (EST)
Message-ID: <alpine.BSO.2.00.1001180250020.30607@leary.csoft.net> (raw)
In-Reply-To: <4B540B7D.1080306@b2bcentrum.cz>
References: <4B540B7D.1080306@b2bcentrum.cz>



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



view thread (15+ messages)  latest in thread

Message-ID: <alpine.BSO.2.00.1001180250020.30607@leary.csoft.net>
Permalink:  ../alpine.BSO.2.00.1001180250020.30607@leary.csoft.net/
Also on:    postgresql.org/message-id/alpine.BSO.2.00.1001180250020.30607@leary.csoft.net

 · 

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: books@ejurka.com, jakub.bednar@b2bcentrum.cz
  Subject: Re: Mapping Java BigDecimal
  In-Reply-To: <alpine.BSO.2.00.1001180250020.30607@leary.csoft.net>
  References: <4B540B7D.1080306@b2bcentrum.cz> <alpine.BSO.2.00.1001180250020.30607@leary.csoft.net>

* 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