ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Meadors <larry.mead...@gmail.com>
Subject Re: QueryForObject returns wrong data
Date Wed, 27 Jul 2005 19:56:07 GMT
On 7/27/05, Jeff Butler <dhscn06@cstone.dhs.state.il.us> wrote:
> 
> I think we have the answer. I don't know why it works even the first
> time without specifying the scale. Weird.
> 
> Anyway, iBATIS does not currently offer a way to set the scale on
> output parameters. I think what's needed is a change to the parameter
> map so you can specify scale like this:
> 
> <parameter property="financialSocialsecurity" jdbcType="DECIMAL:2"
> javaType="java.math.BigDecimal" mode="OUT"/>
> 
> Then there needs to be a change to the iBATIS code to honor the scale
> for DECIMAL and NUMERIC output parameters.
> 
> Perhaps a JIRA bug report is now in order?
> 

Yes, please, and a reproducible test case would be a big bonus. :)

Larry

Mime
View raw message