Skip to content
Permalink
Browse files

[studio] Fix issue with driver at system classloader (overloading tho…

…se in selected driver JAR)
  • Loading branch information
cchantep
cchantep committed Feb 9, 2014
1 parent 1482fa1 commit 965bc416990b54b0d9421c72af769bfe75e3f31e
Showing with 11 additions and 1 deletion.
  1. +11 −1 studio/src/main/java/acolyte/JDBC.java
@@ -53,7 +53,17 @@ public static Driver loadDriver(final URL jarUrl) {

// ---

return iter.next();
Driver d;
while (iter.hasNext()) {
d = iter.next();

if (driverCl.equals(d.getClass().getClassLoader())) {
return d; // Ignore driver at system classloader
// e.g. sun.jdbc.odbc.JdbcOdbcDriver
} // end of if
} // end of while

return null;
} // end of loadDriver

/**

0 comments on commit 965bc41

Please sign in to comment.
You can’t perform that action at this time.