Calling isBeforeFirst() multiple times on a RefCursor ResultSet always returns true
Last updated on AUGUST 03, 2016
Applies to:JDBC - Version 188.8.131.52.0 to 184.108.40.206.0 [Release 11.2]
Information in this document applies to any platform.
With JDBC 220.127.116.11 and 18.104.22.168 resultSet.isBeforeFirst() always returns true when calling a PL SQL stored procedure that has a ref cursor as an OUT parameter.
If you fetch from a ref cursor in a loop while rs.next(), calling isBeforeFirst(), then it loops indefinitely returning the first row.
The issue does not occur with JDBC 10.2.0.5 or 22.214.171.124.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms