Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,15 @@ protected void openCursor(Connection con) {
}

/**
* Close the cursor and database connection.
* @param connection to the database
* Releases JDBC resources associated with this reader.
* Closes the PreparedStatement used for the cursor.
* The Connection is not closed here; it is managed by the parent class.
*
* @param connection the active database connection used for the cursor
*/
@Override
protected void cleanupOnClose(Connection connection) {
JdbcUtils.closeStatement(this.preparedStatement);
JdbcUtils.closeConnection(connection);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,15 @@ protected void openCursor(Connection con) {
}

/**
* Close the cursor and database connection.
* @param connection to the database
* Releases JDBC resources associated with this reader.
* Closes the PreparedStatement used for the cursor.
* The Connection is not closed here; it is managed by the parent class.
*
* @param connection the active database connection used for the cursor
*/
@Override
protected void cleanupOnClose(Connection connection) {
JdbcUtils.closeStatement(this.callableStatement);
JdbcUtils.closeConnection(connection);
}

@Override
Expand Down