add DruidConnectionHolder testcase & bug fixed

This commit is contained in:
wenshao
2012-08-28 11:06:45 +08:00
parent 96196a0ccd
commit d9c286e0fb
@@ -215,10 +215,9 @@ public final class DruidConnectionHolder {
buf.append("\"");
}
PreparedStatementPool statmentPool = this.getStatementPool();
if (statmentPool != null && statmentPool.getMap().size() > 0) {
if (statementPool != null && statementPool.getMap().size() > 0) {
buf.append("\", CachedStatementCount:");
buf.append(this.getStatementPool().getMap().size());
buf.append(statementPool.getMap().size());
}
buf.append("}");