mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add mysql-connector/j 6.x support
This commit is contained in:
+3
@@ -54,6 +54,9 @@ public class MySqlValidConnectionChecker extends ValidConnectionCheckerAdapter i
|
||||
if (clazz == null) {
|
||||
clazz = Utils.loadClass("com.mysql.cj.jdbc.ConnectionImpl");
|
||||
}
|
||||
if (clazz == null) {
|
||||
clazz = Utils.loadClass("com.mysql.cj.api.MysqlConnection");
|
||||
}
|
||||
|
||||
if (clazz != null) {
|
||||
ping = clazz.getMethod("pingInternal", boolean.class, int.class);
|
||||
|
||||
Reference in New Issue
Block a user