Browse Source

Merge pull request #6478 in CORE/base-third from bugfix/11.0 to feature/x

* commit '1886ca3baba09cfdb7fd96e135d356da9ad0cba2':
  REPORT-77015 Druid连接失败时抛出的报错不方便直接查看原因,10.0是可以的
feature/x
superman 2 years ago
parent
commit
7cc760afc3
  1. 4
      fine-druid/src/main/java/com/fr/third/alibaba/druid/pool/DruidDataSource.java

4
fine-druid/src/main/java/com/fr/third/alibaba/druid/pool/DruidDataSource.java

@ -1830,7 +1830,11 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
String errorMessage = buf.toString();
if (createError != null) {
if (createError instanceof SQLException) {
throw (SQLException)createError;
} else {
throw new GetConnectionTimeoutException(errorMessage, createError);
}
} else {
throw new GetConnectionTimeoutException(errorMessage);
}

Loading…
Cancel
Save