[ 
https://issues.apache.org/jira/browse/OPENJPA-2862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Struberg resolved OPENJPA-2862.
------------------------------------
    Resolution: Fixed

> 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)

Reply via email to