pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Emi Lu <emilu@encs.concordia.ca>
To: David Gagnon <dgagnon@siunik.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: SQLMAP IBATIS insert values from web forms to a money
Date: Mon, 14 Aug 2006 10:06:37 -0400
Message-ID: <44E0836D.6030609@encs.concordia.ca> (raw)
In-Reply-To: <44E08174.1060407@siunik.com>
References: <44E07FD8.7090908@encs.concordia.ca>
	<44E08174.1060407@siunik.com>


>
>  I think you should use BigDecimal ...
>
>
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

>
> Emi Lu wrote:
>> Hello,
>>
>> I am using SQLMAP ibatis to do DB insertion for a webapplication.
>>
>> In my sqlmap.xml file, I was trying to insert values into a table 
>> with one col (type is Money), but in java, I could not find Money type.
>>
>> Does someone knows about ibatis how to make values got from the web 
>> form to be inserted into money type column through IBATIS ?
>>
>> Thanks a lot!
>>
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 1: if posting/reading through Usenet, please send an appropriate
>>       subscribe-nomail command to majordomo@postgresql.org so that your
>>       message can get through to the mailing list cleanly
>>
>>
>>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>       choose an index scan if your joining column's datatypes do not
>       match




view thread (4+ messages)  latest in thread

Message-ID: <44E0836D.6030609@encs.concordia.ca>
Permalink:  ../44E0836D.6030609@encs.concordia.ca/
Also on:    postgresql.org/message-id/44E0836D.6030609@encs.concordia.ca

 · 

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: emilu@encs.concordia.ca, dgagnon@siunik.com
  Subject: Re: SQLMAP IBATIS insert values from web forms to a money
  In-Reply-To: <44E0836D.6030609@encs.concordia.ca>
  References: <44E07FD8.7090908@encs.concordia.ca> <44E08174.1060407@siunik.com> <44E0836D.6030609@encs.concordia.ca>

* 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