提交 e310b9d0 编写于 作者: J jurgen

acceptsURL check doesn't thorw exception

上级 42171a3b
......@@ -127,9 +127,13 @@ public abstract class JDBCDataSource
}
// Obtain connection
try {
if (driverInstance != null && !driverInstance.acceptsURL(connectionInfo.getUrl())) {
// Just write a warning in log. Some drivers are poorly coded and always returns false here.
log.error("Bad URL: " + connectionInfo.getUrl());
try {
if (driverInstance != null && !driverInstance.acceptsURL(connectionInfo.getUrl())) {
// Just write a warning in log. Some drivers are poorly coded and always returns false here.
log.error("Bad URL: " + connectionInfo.getUrl());
}
} catch (SQLException e) {
log.debug("Error in " + driverInstance.getClass().getName() + ".acceptsURL()", e);
}
Connection connection;
if (driverInstance == null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册