{
CallableStatement cstmt = con.prepareCall("{ call decimal_proc(?,?,?) }");
cstmt.registerOutParameter(1, Types.DECIMAL);
cstmt.registerOutParameter(2, Types.DECIMAL );
cstmt.registerOutParameter(3, Types.DECIMAL );
cstmt.executeUpdate();
BigDecimal val = (BigDecimal)cstmt.getObject(1);
assertTrue( val.compareTo(new BigDecimal("999999999999999.000000000000000")) == 0 );
val = ( BigDecimal )cstmt.getObject(2);
assertTrue( val.compareTo( new BigDecimal( "0.000000000000001")) == 0);
val = ( BigDecimal )cstmt.getObject(3);