Community
Participate
Working Groups
In the test suite eclipselink.jpa.wdf.test, the test org.eclipse.persistence.testing.tests.wdf.jpa1.query.TestSetFunctions.testSum fails on MaxDB. The test executes the following query select sum(e.salary) from Employee e. The attribute has the type BigDecimal. The test assumes that the return type of the query is BigDecimal. However, a Double value is returned. This violates ยง4.8.4: SUM returns [...] and BigDecimal when applied to state fields of type BigDecimal Likely, this issue does not affect MaxDB only.
Same applies to test org.eclipse.persistence.testing.tests.wdf.jpa1.query.TestSelectListTypes.testSumBigDecimal.
Setting target and priority. See the following page for details of the meanings of these fields: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
assigning this to Konstantin as he is working on this issue
Created attachment 197769 [details] proposed patch Tested on MaxDB and MySQL for test-core, test-jpa and test-wdf -> ok, no regression, but please double-check This patch solves the problem described above. Two of the wdf tests (TestSetFunctions.testSum() and TestSelectListTypes.testSumBigDecimal()) can now be used.
Checked into 2.5.1
Fix checked into 2.5.1, master Reviewed by: Tom Ware reviewed user submitted fix Tested with JPA LRG
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink