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

select SUM doesn't return spec defined types

    XMLWordPrintableJSON

Details

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

    Description

      As per spec section 4.8.5 Aggregate Functions in the SELECT Clause we need to handle a few types in a special way

      SUM returns Long when applied to state fields of integral types (other than BigInteger); Dou- ble when applied to state fields of floating point types; BigInteger when applied to state fields of type BigInteger; and BigDecimal when applied to state fields of type BigDecimal.
      

      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: