Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1527

Hana SMALLDECIMAL not properly supported

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • (Java) V4 4.8.0
    • None
    • odata4-server
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            wdaehn Werner Daehn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: