Skip to content

Commit

Permalink
Reset the currentSchema and currentCatalog back to null on reset
Browse files Browse the repository at this point in the history
  • Loading branch information
rbygrave committed Oct 30, 2024
1 parent 74b6d65 commit f9466b1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,13 @@ public void close() throws SQLException {

if (resetSchema) {
connection.setSchema(originalSchema);
currentSchema = null;
resetSchema = false;
}

if (resetCatalog) {
connection.setCatalog(originalCatalog);
currentCatalog = null;
resetCatalog = false;
}

Expand Down

0 comments on commit f9466b1

Please sign in to comment.