changeset 413:f0dfd2003aff

Resolved an issue where the JdbcClient sometimes would not find the MonetDB JDBC driver. It is now explictly imported, resolving the issue.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 14 Jan 2021 22:38:43 +0100 (2021-01-14)
parents 42e006ee81a4
children 1e278695fe54
files src/main/java/org/monetdb/client/JdbcClient.java
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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");