SQLException Not Thrown When You Change Result Set Holdability
(Doc ID 2091078.1)
Last updated on OCTOBER 26, 2020
Applies to:JDBC - Version 10.2.0.1 to 22.214.171.124.0 [Release 10.2 to 11.2]
Information in this document applies to any platform.
According to Database JDBC Developer's Guide, you get SQLException if you change the result set holdability:
Result Set Holdability
Result set holdability was introduced since JDBC 3.0. This feature enables applications to decide whether the ResultSet objects should be open or closed, when a commit operation is performed. The commit operation could be either implicit or explicit.
Oracle Database supports only HOLD_CURSORS_OVER_COMMIT. Therefore, it is the default value for Oracle JDBC drivers. Any attempt to change holdability will throw a SQLException exception.
However, the driver does not throw SQLException.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document