Werner Daehn created OLINGO-1527: ------------------------------------ Summary: Hana SMALLDECIMAL not properly supported Key: OLINGO-1527 URL: https://issues.apache.org/jira/browse/OLINGO-1527 Project: Olingo Issue Type: Bug Components: odata4-server Affects Versions: (Java) V4 4.8.0 Reporter: Werner Daehn
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. -- This message was sent by Atlassian Jira (v8.3.4#803005)