Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JDO 2 maintenance release 2 (2.2)
    • Fix Version/s: JDO 3.1-rc1
    • Component/s: specification, tck
    • Labels:
      None

      Description

      Aggregate type specification at page 175 claims that avg(expression) return type is the same of the enclosed expression.
      This is wrong from a strictly mathematical point of view.
      In fact, if you select an avg on an int field member the result is truncated.
      The result type should always be double.

      1. JDO-643.patch
        1 kB
        Andy Jefferson

        Activity

        Guido Anzuoni created issue -
        Michael Bouschen made changes -
        Field Original Value New Value
        Assignee Michael Bouschen [ mbo ]
        Fix Version/s JDO 3 maintenance release 1 [ 12314921 ]
        Andy Jefferson made changes -
        Attachment JDO-643.patch [ 12466134 ]
        Michael Bouschen made changes -
        Component/s tck [ 11652 ]
        Michael Bouschen made changes -
        Assignee Michael Bouschen [ mbo ] Craig L Russell [ clr ]
        Michael Bouschen made changes -
        Assignee Craig L Russell [ clr ] Michael Bouschen [ mbo ]
        Michael Bouschen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Michael Bouschen
            Reporter:
            Guido Anzuoni
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development