git-svn-id: http://code.alibabatech.com/svn/druid/trunk@605 b9813039-fb51-4c41-a8b9-e21c2acb5095

This commit is contained in:
wenshao
2011-09-02 18:54:24 +00:00
parent ed14b12179
commit c150613826
@@ -426,7 +426,9 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
JdbcUtils.close(conn);
throw new SQLException(e.getMessage(), e);
} catch (SQLException e) {
} catch (Exception e) {
JdbcUtils.close(conn);
lock.lock();
try {
decrementActiveCount();
@@ -435,9 +437,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
lock.unlock();
}
JdbcUtils.close(conn);
throw e;
throw new SQLException("recyle error", e);
}
}