Skip to content

Commit

Permalink
rollback class.forname
Browse files Browse the repository at this point in the history
  • Loading branch information
xunliu committed Sep 24, 2024
1 parent 13b8e2e commit b8b327c
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ public String startH2Database(Config config) {

String connectionUrl = constructH2URI(originalJDBCUrl, storagePath);

try {
Class.forName("org.h2.Driver");
} catch (ClassNotFoundException e) {
throw new RuntimeException("Failed to load H2 driver.", e);
}

try (Connection connection = DriverManager.getConnection(connectionUrl, username, password);
Statement statement = connection.createStatement()) {
String sqlContent =
Expand Down

0 comments on commit b8b327c

Please sign in to comment.