On 1/4/06, Bernt M. Johnsen <Bernt.Johnsen@sun.com> wrote:I was too fast in my conclusions. It is not a bug.setObject(idx, bigDecimal, Types.NUMERIC) is defined to be identicalwith setObject(idx, bigDecimal, Types.NUMERIC, 0) and that's exactlywhat Derby does.If you need decimals, you have to specify scale. E.g.:setObject(idx, new BigDecimal("0.9999"), Type.NUMERIC, 4);Indeed, you're right (though I think this is a design error in JDBCitself). I've changed my source accordingly (using setBigDecimalinstead).Thanks,Tom
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!