修复重复关闭statement时的问题

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@435 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-07-14 07:49:59 +00:00
parent 89bbcd7f6e
commit 8f0e7ed7ac
2 changed files with 9 additions and 6 deletions
@@ -93,12 +93,12 @@ public class PoolableStatement extends PoolableWrapper implements Statement {
@Override
public void close() throws SQLException {
clearResultSet();
stmt.close();
this.closed = true;
conn.getConnectionHolder().removeTrace(this);
if (!this.closed) {
clearResultSet();
stmt.close();
this.closed = true;
conn.getConnectionHolder().removeTrace(this);
}
}
@Override