mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Merge pull request #216 from qinerg/master
使WallFilter可以更准确的获取到数据库类型,并提供对 JDTS 驱动的支持
This commit is contained in:
@@ -54,9 +54,8 @@ public class WallFilter extends FilterAdapter implements WallFilterMBean {
|
||||
|
||||
@Override
|
||||
public void init(DataSourceProxy dataSource) {
|
||||
|
||||
if (this.dbType == null || this.dbType.trim().length() == 0) {
|
||||
this.dbType = dataSource.getDbType();
|
||||
this.dbType = JdbcUtils.getDbType(dataSource.getRawJdbcUrl(), "");
|
||||
}
|
||||
|
||||
if (dbType == null) {
|
||||
|
||||
Reference in New Issue
Block a user