Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 796CF9FA1C8 for ; Wed, 5 Sep 2007 09:08:38 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 81224-02 for ; Wed, 5 Sep 2007 09:08:27 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from mail01.enterprisedb.com (mail01.enterprisedb.com [63.246.7.168]) by postgresql.org (Postfix) with ESMTP id 4B45E9FA25E for ; Wed, 5 Sep 2007 09:08:34 -0300 (ADT) thread-index: AcfvtYLroj8AXTIKTaexmx2fs7Am3Q== Received: from [172.24.32.97] ([62.232.55.118]) by mail01.enterprisedb.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Wed, 5 Sep 2007 08:08:46 -0400 Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4073 Message-ID: <46DE9C1F.6030407@enterprisedb.com> Date: Wed, 05 Sep 2007 13:07:59 +0100 From: "Heikki Linnakangas" User-Agent: Icedove 1.5.0.12 (X11/20070730) MIME-Version: 1.0 To: "Peter Kovacs" Cc: Subject: Re: PreparedStatement rounds doubles to scale 14 during update References: <46DE7E7A.70208@enterprisedb.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 Sep 2007 12:08:46.0609 (UTC) FILETIME=[82CF4810:01C7EFB5] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/16 X-Sequence-Number: 17438 Peter Kovacs wrote: > Heikki, > > Thank you for your reply. > > What are base-10 datatypes? Are they numeric types? I cannot find them > in the backend documentation. I meant any data type that can accurately represent a base-10 decimal number. In PostgreSQL, that's numeric. In Java, it's BigDecimal. If you're not familiar with the differences between floating point and decimal numbers, I'd suggest you to read on it. This python tutorial for example has a pretty good chapter on the issues: http://docs.python.org/tut/node16.html > Is there a mapping of Java types to backend types documented somewhere? There is for mapping between Java types and SQL types, see "Getting Started with with the JDBC API" by Sun: http://java.sun.com/j2se/1.5.0/docs/guide/jdbc/getstart/mapping.html -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com