Minor tweaks

pull/1/head
Brett Wooldridge 11 years ago
parent 3dadc314de
commit d20695c2da

@ -199,16 +199,13 @@ public class ConnectionProxy extends HikariProxyBase implements IHikariConnectio
_leakTask = null;
}
if (getAutoCommit())
{
commit();
}
try
{
for (Statement statement : _openStatements)
// Faster than an iterator
for (int i = _openStatements.size() - 1; i >= 0; i--)
{
statement.close();
_openStatements.get(i).close();
}
}
catch (SQLException e)

@ -49,6 +49,7 @@ public class StubResultSet implements ResultSet
/** {@inheritDoc} */
public <T> T unwrap(Class<T> iface) throws SQLException
{
return null;
}
@ -61,7 +62,7 @@ public class StubResultSet implements ResultSet
/** {@inheritDoc} */
public boolean next() throws SQLException
{
return false;
return (counter < 10);
}
/** {@inheritDoc} */

Loading…
Cancel
Save