Search Postgresql Archives

Re: Mapping Java BigDecimal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jakub Bednář wrote:
Hi All,

We decide add support PostgreSQL database (now supporting only Oracle database) to our product.

In Oracle we mapping Java BigDecimal to number(19, 2), in PostgreSQL to numeric(19, 2).

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,...) how reach return number without trailing zeroes on decimal position?

There's no difference between those two values in Java's BigDecimal.

Are you saying that the 'scale' of the returned values differs between the JDBC for Oracle and that for PG?

--
Lew

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux