mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed pooledStatementStat
This commit is contained in:
@@ -469,7 +469,7 @@ public class PreparedStatementProxyImpl extends StatementProxyImpl implements Pr
|
||||
|
||||
public JdbcSqlStat getSqlStat() {
|
||||
if (sqlStat != null && sqlStat.isRemoved()) {
|
||||
JdbcSqlStat sqlStat = this.getConnectionProxy().getDirectDataSource().getDataSourceStat().getSqlStat(sql);
|
||||
JdbcSqlStat sqlStat = this.getConnectionProxy().getDirectDataSource().getDataSourceStat().createSqlStat(sql);
|
||||
sqlStat.setDbType(this.sqlStat.getDbType());
|
||||
this.sqlStat = sqlStat;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user