Community
Participate
Working Groups
SAP HANA Database doesn't support scrollable cursors. To be precise, only the result set type TYPE_FORWARD_ONLY with concurrency mode CONCUR_READ_ONLY are supported. Tests that rely on scrollable cursors should therefore be skipped for that database platform. These are: - org.eclipse.persistence.testing.tests.queries.Jdk12ScrollableCursorTest - org.eclipse.persistence.testing.tests.queries.ScrollableCursorAPITest - org.eclipse.persistence.testing.tests.queries.ScrollableCursorBackwardReadingTest - org.eclipse.persistence.testing.tests.queries.ScrollableCursorJoinedAttributeTest - org.eclipse.persistence.testing.tests.queries.ScrollableCursorJoiningVerificationTest - org.eclipse.persistence.testing.tests.queries.ScrollableCursorNavigationAPITest - org.eclipse.persistence.testing.tests.queries.ScrollableCursorStatementCachingReadTest - org.eclipse.persistence.testing.tests.queries.ScrollableCursorTest The test - org.eclipse.persistence.testing.tests.queries.options.ClearQueryOptionsOnStatementTest is adapted so that is uses TYPE_FORWARD_ONLY and CONCUR_READ_ONLY on SAP HANA Database. I'll attach a patch containing the changes.
Created attachment 218201 [details] Patch containing the test changes
Checked in changes as submitted Reviewed by Tom Ware - reviewed user -submitted changes
I encountered a few more instances of the same issue. I fixed the problem in the same manner by making sure that the tests always use TYPE_FORWARD_ONLY and CONCUR_READ_ONLY when executed on SAP HANA database. See attached patch.
Created attachment 224626 [details] More test cases adapted
I made this change a github contribution and created a pull request for it: https://github.com/sabineheider/eclipselink.runtime/commit/af8c62efd49dfce3b732ce3f5e73d2fbaf360439 I hope that makes it easier to handle. Please let me know if I made anything wrong - I'm not yet familiar with the github contribution process.
Checked in changes. reviewed by: Tom Ware - reviewed submitted changes Tested with Core and JPA LRG
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink