BigDecimal Scale Problem WO524
"COAST" <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <s3f9ccef.036@CEDES_MSRV1.cedes.local> |
Radar #2918829 Key value coding fails to coerce the scale and/or precision of BigDecimal values. And when you try to save, the JDBC Adaptor throws an exception because of excessive scale. Description: Neither key value coding nor the JDBC adaptor performs any rounding; otherwise, information would get lost. Rounding could occur only if the underlying database/driver were to do so independently of EOF. Workaround: Please make sure that the scale and precision of a value (especially BigDecimal) does not exceed the scale and precision of the corresponding attribute in the model. I really don't like this workaround, it's a pane ! This was working properly with 5.1. Any other idea ? Thanks in advance Peter