mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser, support apache phoenix.
This commit is contained in:
@@ -660,7 +660,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
JdbcDataSourceStat.setGlobal(dataSourceStat);
|
||||
}
|
||||
if (dataSourceStat.getDbType() == null) {
|
||||
dataSourceStat.setDbType(this.getDbType());
|
||||
dataSourceStat.setDbType(this.dbType);
|
||||
}
|
||||
} else {
|
||||
dataSourceStat = new JdbcDataSourceStat(this.name, this.jdbcUrl, this.dbType, this.connectProperties);
|
||||
@@ -1732,7 +1732,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
}
|
||||
|
||||
value.setName(this.getName());
|
||||
value.setDbType(this.getDbType());
|
||||
value.setDbType(this.dbType);
|
||||
value.setDriverClassName(this.getDriverClassName());
|
||||
|
||||
value.setUrl(this.getUrl());
|
||||
@@ -2578,7 +2578,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
map.put("MinEvictableIdleTimeMillis", this.getMinEvictableIdleTimeMillis());
|
||||
map.put("ConnectErrorCount", this.getConnectErrorCount());
|
||||
map.put("CreateTimespanMillis", this.getCreateTimespanMillis());
|
||||
map.put("DbType", this.getDbType());
|
||||
map.put("DbType", this.dbType);
|
||||
|
||||
// 20 - 24
|
||||
map.put("ValidationQuery", this.getValidationQuery());
|
||||
@@ -2651,7 +2651,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
|
||||
dataMap.put("Identity", System.identityHashCode(this));
|
||||
dataMap.put("Name", this.getName());
|
||||
dataMap.put("DbType", this.getDbType());
|
||||
dataMap.put("DbType", this.dbType);
|
||||
dataMap.put("DriverClassName", this.getDriverClassName());
|
||||
|
||||
dataMap.put("URL", this.getUrl());
|
||||
|
||||
Reference in New Issue
Block a user