startTransactionCount

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@738 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-09-11 10:42:56 +00:00
parent b4b98d784c
commit dfb616aed1
4 changed files with 22 additions and 3 deletions
@@ -528,6 +528,10 @@ public class PoolableConnection implements PooledConnection, Connection {
checkOpen();
try {
if ((!autoCommit) && conn.getAutoCommit()) {
holder.getDataSource().incrementStartTransactionCount();
}
conn.setAutoCommit(autoCommit);
} catch (SQLException ex) {
handleException(ex);