Changeset: f0dfd2003aff for monetdb-java
URL: https://dev.monetdb.org/hg/monetdb-java?cmd=changeset;node=f0dfd2003aff
Modified Files:
        src/main/java/org/monetdb/client/JdbcClient.java
Branch: default
Log Message:

Resolved an issue where the JdbcClient sometimes would not find the MonetDB 
JDBC driver.
It is now explictly imported, resolving the issue.


diffs (30 lines):

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");
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to