bug fixed pooledStatementStat

This commit is contained in:
wenshao
2012-08-06 20:34:31 +08:00
parent 1aeb814d93
commit f87cfbd39a
2 changed files with 41 additions and 17 deletions
@@ -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;
}