1.1 --- a/java/jdbc-loopback-driver/src/info/globalcode/jdbc/loopback/Driver.java Sat Apr 12 20:01:42 2014 +0200
1.2 +++ b/java/jdbc-loopback-driver/src/info/globalcode/jdbc/loopback/Driver.java Fri May 09 14:16:45 2014 +0200
1.3 @@ -43,7 +43,11 @@
1.4
1.5 @Override
1.6 public Connection connect(String url, Properties info) throws SQLException {
1.7 - return new Connection(url, info);
1.8 + if (acceptsURL(url)) {
1.9 + return new Connection(url, info);
1.10 + } else {
1.11 + throw new SQLException("Unsupported URL: " + url);
1.12 + }
1.13 }
1.14
1.15 @Override