# HG changeset patch # User Martin van Dinther <martin.van.dinther@monetdbsolutions.com> # Date 1610660323 -3600 # Node ID f0dfd2003aff0b70d1ce54cc8df70e3523717918 # Parent 42e006ee81a4a369ec7b256a97d90cb6c17f96bb Resolved an issue where the JdbcClient sometimes would not find the MonetDB JDBC driver. It is now explictly imported, resolving the issue. diff --git a/src/main/java/org/monetdb/client/JdbcClient.java b/src/main/java/org/monetdb/client/JdbcClient.java --- a/src/main/java/org/monetdb/client/JdbcClient.java +++ b/src/main/java/org/monetdb/client/JdbcClient.java @@ -8,6 +8,7 @@ package org.monetdb.client; +import org.monetdb.jdbc.MonetDriver; import org.monetdb.util.CmdLineOpts; import org.monetdb.util.Exporter; import org.monetdb.util.MDBvalidator; @@ -246,7 +247,7 @@ public class JdbcClient { /* cannot (yet // We cannot use the DatabaseMetaData here, because we // cannot get a Connection. So instead, we just get the // values we want out of the Driver directly. - System.out.println("JDBC Driver: v" + org.monetdb.jdbc.MonetDriver.getDriverVersion()); + System.out.println("JDBC Driver: v" + MonetDriver.getDriverVersion()); System.exit(0); } @@ -274,9 +275,6 @@ public class JdbcClient { /* cannot (yet host = host + ":" + copts.getOption("port").getArgument(); } - // make sure the driver is loaded - // Class.forName("org.monetdb.jdbc.MonetDriver"); // not needed anymore for self registering JDBC drivers - // build the extra arguments of the JDBC connect string String attr = "?"; CmdLineOpts.OptionContainer oc = copts.getOption("language");