Fixy fixy.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2153 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2007-07-30 22:18:54 +00:00
parent 991216b078
commit c08d4c6535
@@ -243,13 +243,13 @@ public class SimpleRepository extends Repository
} finally {
if (conn != null) {
// restore our auto-commit settings
if (oldAutoCommit != null && !conn.isClosed()) {
try {
try {
// restore our auto-commit settings
if (oldAutoCommit != null && !conn.isClosed()) {
conn.setAutoCommit(oldAutoCommit);
} catch (SQLException sace) {
Log.warning("Unable to restore auto-commit [err=" + sace + "].");
}
} catch (SQLException sace) {
Log.warning("Unable to restore auto-commit [err=" + sace + "].");
}
// release the database connection
_provider.releaseConnection(_dbident, readOnly, conn);