Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2597

HsqlDictionary considers NUMERIC/DECIMAL as a fixedSizeTypeNameSet

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.1
    • Component/s: None
    • Labels:
      None

      Description

      @Column(scale = 8, precision = 10) double val; mapping would need NUMERIC(10,8) type but since numeric is in fixedSizeTypeNameSet set then we just get NUMERIC and scale=0 which implies float/double/BigDecimal mappings are not working as expected.

        Activity

        Hide
        romain.manni-bucau Romain Manni-Bucau added a comment -

        Just removing in HSQLDictionary "NUMERIC" from fixedSizeTypeNameSet is fine (tested against hsqldb 2.x). DECIMAL has the same issue since it is the same for hsqldb.

        Show
        romain.manni-bucau Romain Manni-Bucau added a comment - Just removing in HSQLDictionary "NUMERIC" from fixedSizeTypeNameSet is fine (tested against hsqldb 2.x). DECIMAL has the same issue since it is the same for hsqldb.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 1688082 from Romain Manni-Bucau in branch 'openjpa/trunk'
        [ https://svn.apache.org/r1688082 ]

        OPENJPA-2597 DECIMAL and NUMERIC needs scale configuration for hsqldb

        Show
        jira-bot ASF subversion and git services added a comment - Commit 1688082 from Romain Manni-Bucau in branch 'openjpa/trunk' [ https://svn.apache.org/r1688082 ] OPENJPA-2597 DECIMAL and NUMERIC needs scale configuration for hsqldb

          People

          • Assignee:
            Unassigned
            Reporter:
            romain.manni-bucau Romain Manni-Bucau
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development