Ensure that even if a close statement fails during connection close that we continue to try to close additional statements.

pull/22/head
Brett Wooldridge 11 years ago
parent e6dce5b73e
commit e021074764

@ -178,9 +178,16 @@ public abstract class ConnectionProxy implements IHikariConnectionProxy
// Faster than an iterator most times
final int length = openStatements.size();
for (int i = 0; i < length; i++)
{
try
{
openStatements.get(i).close();
}
catch (SQLException e)
{
checkException(e);
}
}
if (!getAutoCommit())
{

Loading…
Cancel
Save