Skip to content

Commit

Permalink
reduce duplicated codes
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzy523 committed Dec 20, 2023
1 parent 97d9e04 commit a9faaa2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public ResultSet executeStatement(String catalog, String statement) {
try {
connection.setCatalog(useCatalog);
} catch (SQLException e) {
throw new RuntimeException(String.format("Failed to set catalog %s on the connection",
useCatalog), e);
throw new RuntimeException(
String.format("Failed to set catalog %s on the connection", useCatalog), e);
}
this.currentCatalog = catalog;
}
Expand Down

0 comments on commit a9faaa2

Please sign in to comment.