I'm mapping an oracle Number(1,4) type (float numbers) to
java BigDecimal.
When i try a setBigDecimal(index, new BigDecimal(0.0001)) or someting else i get an error :
"incohrent value with precision set for the column".
I saw in the classes12.zip driver classes the oracle.sql.Number classe that wraps Number type. But for me to use setNumber i must use the OraclePreparedStatement, and so on cast my Connection to an OracleConnection to get that particular statement. The problem is that i'm using WSAD4 and it uses proxy for the OracleConnectionPoolDataSource, so i see the ibm ejs.JPhase1 interface but cannot cast it to the correct oracle connection classe...
Is there something to check when installing oracle for the setBigDecimal to work, as i cannot use the second alternative ?
tanks,
jerome