java/jdbc-dk-driver/src/info/globalcode/sql/dk/jdbc/Driver.java
branchv_0
changeset 235 8ce612cca4d8
parent 195 aed11d9107bf
--- a/java/jdbc-dk-driver/src/info/globalcode/sql/dk/jdbc/Driver.java	Tue Feb 26 16:36:45 2019 +0100
+++ b/java/jdbc-dk-driver/src/info/globalcode/sql/dk/jdbc/Driver.java	Tue Feb 26 17:31:41 2019 +0100
@@ -86,7 +86,8 @@
 				throw new SQLException("Unable to load SQL-DK configuration for name: " + name, e);
 			}
 		} else {
-			throw new SQLException("Unsupported URL: " + url);
+			// The driver should return "null" if it realizes it is the wrong kind of driver to connect to the given URL.
+			return null;
 		}
 	}