We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1307ef3 commit a1e5c05Copy full SHA for a1e5c05
src/main/java/fi/hsl/transitdata/pulsarpubtransconnect/Main.java
@@ -146,6 +146,11 @@ private static Connection createPubtransConnection() throws Exception {
146
147
Connection connection = null;
148
try {
149
+ if (connectionString.contains("postgresql")) {
150
+ //Load Postgres driver
151
+ Class.forName("org.postgresql.Driver");
152
+ }
153
+
154
connection = DriverManager.getConnection(connectionString);
155
log.info("Database connection created");
156
} catch (SQLException e) {
0 commit comments