完善mock driver

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@390 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-07-12 23:55:31 +00:00
parent da81a2c4d5
commit 906b23b61a
2 changed files with 30 additions and 6 deletions
@@ -118,7 +118,12 @@ public class MockConnection implements Connection {
@Override
public void close() throws SQLException {
closed = true;
if (!closed) {
closed = true;
if (driver != null) {
driver.afterConnectionClose(this);
}
}
}
@Override