mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed filter.int dbType is null, for issue 1193. https://github.com/alibaba/druid/issues/1193
This commit is contained in:
@@ -590,15 +590,15 @@ public class DruidDataSource extends DruidAbstractDataSource
|
||||
this.jdbcUrl = this.jdbcUrl.trim();
|
||||
initFromWrapDriverUrl();
|
||||
}
|
||||
|
||||
for (Filter filter : filters) {
|
||||
filter.init(this);
|
||||
}
|
||||
|
||||
if (this.dbType == null || this.dbType.length() == 0) {
|
||||
this.dbType = JdbcUtils.getDbType(jdbcUrl, null);
|
||||
}
|
||||
|
||||
for (Filter filter : filters) {
|
||||
filter.init(this);
|
||||
}
|
||||
|
||||
if (JdbcConstants.MYSQL.equals(this.dbType) || //
|
||||
JdbcConstants.MARIADB.equals(this.dbType)) {
|
||||
boolean cacheServerConfigurationSet = false;
|
||||
|
||||
Reference in New Issue
Block a user