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; _leakTask = null;
} }
if (getAutoCommit())
{
commit();
}
try 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) catch (SQLException e)

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

Loading…
Cancel
Save