Skip to content

Commit

Permalink
Invalidate on exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheena Malholtra committed Feb 8, 2019
1 parent 179441d commit dceb6dd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5586,6 +5586,7 @@ public boolean isValid(int timeout) throws SQLException {
// The connection is considered to be invalid if the statement fails to close,
// even though query execution succeeded.
connectionlogger.fine(toString() + " Exception checking connection validity: " + e.getMessage());
isValid = false;
}

loggerExternal.exiting(getClassNameLogging(), "isValid", isValid);
Expand Down

0 comments on commit dceb6dd

Please sign in to comment.