[
https://issues.apache.org/jira/browse/OPENJPA-2356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13649463#comment-13649463
]
Albert Lee commented on OPENJPA-2356:
-------------------------------------
commit r1459918 cause the following failure when run against Oracle. It passed
with Derby.
73 <testcase time="2.058"
classname="org.apache.openjpa.persistence.jdbc.meta.TestRangeQuery"
name="testQueryRange">
74 <failure message="expected:<5> but was:<0>"
type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError:
expected:<5> but was:<0>
75 at junit.framework.Assert.fail(Assert.java:47)
76 at junit.framework.Assert.failNotEquals(Assert.java:282)
77 at junit.framework.Assert.assertEquals(Assert.java:64)
78 at junit.framework.Assert.assertEquals(Assert.java:201)
79 at junit.framework.Assert.assertEquals(Assert.java:207)
80 at
org.apache.openjpa.persistence.jdbc.meta.TestRangeQuery.testQueryRange(TestRangeQuery.java:74)
81 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> Use new Offset/Limit/ROWNUM features in DB2 family of databases for range
> queries
> ---------------------------------------------------------------------------------
>
> Key: OPENJPA-2356
> URL: https://issues.apache.org/jira/browse/OPENJPA-2356
> Project: OpenJPA
> Issue Type: Improvement
> Reporter: Pinaki Poddar
> Assignee: Pinaki Poddar
> Fix For: 2.3.0
>
>
> JPA queries that use setFirstResult() and/or setMaxResult() translate to some
> form of Offset and Limit syntax in database SQL query. Recently DB2 and Derby
> has added ROWNUM and FETCH offset respectively.
> OpenJPA should use these facilities when appropriate.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira