Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id ABE49659F59 for ; Mon, 18 Jan 2010 04:55:20 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 43154-06-3 for ; Mon, 18 Jan 2010 08:55:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id AA81A635D97 for ; Mon, 18 Jan 2010 03:52:31 -0400 (AST) Received: by leary.csoft.net (Postfix, from userid 1112) id CA806A373; Mon, 18 Jan 2010 02:52:30 -0500 (EST) Date: Mon, 18 Jan 2010 02:52:30 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: =?ISO-8859-2?Q?Jakub_Bedn=E1=F8?= cc: pgsql-jdbc@postgresql.org Subject: Re: Mapping Java BigDecimal In-Reply-To: <4B540B7D.1080306@b2bcentrum.cz> Message-ID: References: <4B540B7D.1080306@b2bcentrum.cz> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201001/38 X-Sequence-Number: 20234 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