Avoid jdbc isBeforeFirst() and isAfterLast() in scrollable results calls when possible

Description

FetchingScrollableResultsImp#next() calls ResultSet#isBeforeFirst() and ResultSet#isAfterLast() in order to check if the result set is empty but the support for those jdbc methods is optional when using the default scroll mode FORWARD_ONLY. Some database drivers (db2 and derby) do not support it.

FetchingScrollableResultsImpl could theoretically avoid this calls, reducing the amount of interaction with jdbc and allowing it to work an all supported dialects without needing a specific scroll mode.

Activity

Show:
Fixed

Details

Assignee

Reporter

Sprint

Fix versions

Priority

Created September 14, 2023 at 1:28 PM
Updated October 26, 2023 at 3:34 PM
Resolved October 4, 2023 at 5:25 PM

Flag notifications