Bugs item #713352, was opened at 2003-04-01 06:29 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=713352&group_id=22866
Category: JBossCMP Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Paul Boocock (boocockp) Assigned to: Nobody/Anonymous (nobody) Summary: BigDecimals lose fractional digits Initial Comment: BIgDecimal CMP fields may lose the digits after the decimal point when they are stored in the database. This was observed with: JBoss 3.0.6 Windows 2000 JDK1.4.1_02 Sybase Adaptive Server Enterprise/11.9.2.1 Sybase jConnect 5.5 JDBC driver I believe this problem is caused by using the PreparedStatement.setObject method without the scale parameter, which assumes a scale of zero. I fixed it in my installation by patching org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil to pass the scale of BigDecimals. Fixed version attached. I believe the relevant code in the CVS Head is still the same. ---------------------------------------------------------------------- >Comment By: Scott M Stark (starksm) Date: 2003-04-03 21:06 Message: Logged In: YES user_id=175228 There is no attachment. Check the upload box when adding an attachment. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=713352&group_id=22866 ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development