Decouple h2 mem db from rest of examples

This commit is contained in:
PentaKon 2022-03-14 20:27:25 +02:00
parent 3c9ba66969
commit a788576972
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class RowCounterApp {
}
static Connection createDummyDB() throws SQLException {
String dbUrl = "jdbc:h2:mem:testdb";
String dbUrl = "jdbc:h2:mem:storagedb";
Connection conn = DriverManager.getConnection(dbUrl);
try (Statement statement = conn.createStatement()) {
String sql = "CREATE TABLE STORAGE (id INTEGER not null, val VARCHAR(50), PRIMARY KEY (id))";