You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/04/06 20:32:00 UTC

[jira] [Commented] (OPENJPA-2862) select SUM doesn't return spec defined types

    [ https://issues.apache.org/jira/browse/OPENJPA-2862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17315835#comment-17315835 ] 

ASF subversion and git services commented on OPENJPA-2862:
----------------------------------------------------------

Commit 5fd5de9fb8931548f98888abc2d577a4aea341ad in openjpa's branch refs/heads/master from Mark Struberg
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=5fd5de9 ]

OPENJPA-2862 select SUM return types fixed

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


> select SUM doesn't return spec defined types
> --------------------------------------------
>
>                 Key: OPENJPA-2862
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2862
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 3.1.2
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>            Priority: Major
>             Fix For: 3.1.3
>
>
> As per spec section 4.8.5 Aggregate Functions in the SELECT Clause we  need to handle a few types in a special way
> {noformat}
> 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.
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)