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

[HSQLDB] HSQLDictionary wrongly maps double to NUMERIC without precision

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.2
    • 3.2.0
    • jdbc
    • None

    Description

      Right now we create a NUMERIC field without any precision digits for double fields. This results in zero decimal fractions, which is clearly wrong.

      We should rather use DOUBLE SQL type, which is a 64bit 'aprox' type. If someone wants to use a fixed prec+scale then useĀ BigDecimal which will be mapped as DECIMAL(n,m)

      Attachments

        Activity

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: