This commit is contained in:
温少
2012-01-11 14:11:04 +08:00
parent 223d3406ba
commit 0b9c2e7084
9 changed files with 1687 additions and 8 deletions
@@ -589,10 +589,13 @@ public class DruidPooledConnection implements javax.sql.PooledConnection, Connec
conn.setAutoCommit(autoCommit);
holder.setUnderlyingAutoCommit(autoCommit);
} catch (SQLException ex) {
if ((!autoCommit) && holder.isUnderlyingAutoCommit()) {
}
handleException(ex);
}
}
protected void transactionRecord(String sql) throws SQLException {
if (transactionInfo == null && (!conn.getAutoCommit())) {
DruidAbstractDataSource dataSource = holder.getDataSource();