Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
(Java) V4 4.8.0
-
None
-
None
Description
The Hana SMALLDECIMAL is a decimal without an explicit scale. More like a double. The Hana JDBC driver reports it as DECIMAL with a scale of 0 and the resultset.getObject() returns a BigDecimal.
The result of this combination is that when the BigDecimal has a value like 18.9 the serializer fails because the scale of the value is 1, the defined scale is 0.
Technically these conditions are valid, I wonder of the code shouldn't be a bit more graceful here. Either way, at the moment this combination breaks any query with a SMALLDECIMAL and content with scale > 0, which is every row probably.