X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 04EFA9FB385 for ; Sun, 20 Aug 2006 17:51:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 91425-03 for ; Sun, 20 Aug 2006 20:51:00 +0000 (UTC) X-Greylist: delayed 00:37:34.883189 by SQLgrey- Received: from curry.tmsl.demon.co.uk (tmsl-adsl.demon.co.uk [80.177.114.181]) by postgresql.org (Postfix) with ESMTP id AE10E9FB382 for ; Sun, 20 Aug 2006 17:50:25 -0300 (ADT) Received: from bacon.tmsl.demon.co.uk (bacon.tmsl.demon.co.uk [192.168.7.102]) by curry.tmsl.demon.co.uk (8.11.6/8.11.6) with ESMTP id k7KKCZZ22517; Sun, 20 Aug 2006 21:12:35 +0100 Date: Sun, 20 Aug 2006 21:11:07 +0100 From: Paul Thomas To: emilu@encs.concordia.ca Cc: David Gagnon , pgsql-jdbc@postgresql.org Subject: Re: SQLMAP IBATIS insert values from web forms to a money Message-ID: <20060820211107.M11632@bacon> References: <44E07FD8.7090908@encs.concordia.ca> <44E08174.1060407@siunik.com> <44E0836D.6030609@encs.concordia.ca> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 In-Reply-To: <44E0836D.6030609@encs.concordia.ca>; from emilu@encs.concordia.ca on Mon, Aug 14, 2006 at 15:06:37 +0100 X-Mailer: Balsa 1.2.3 Lines: 16 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200608/87 X-Sequence-Number: 15614 On 14/08/2006 15:06 Emi Lu wrote: > I tried java.math.BigDeciaml. It does not work for me, I still get the > exceptions: > column "salary_amount" is of type money but expression is of type numeric The PostgreSQL docs clearly state that money is a deprecated type and that you should use numeric instead. Use a column type of numeric and a Java type of BigDecimal. -- Paul Thomas +------------------------------+-------------------------------------------+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk | +------------------------------+-------------------------------------------+