From c08d4c6535406a62311429d2f0865f26508d9373 Mon Sep 17 00:00:00 2001 From: mdb Date: Mon, 30 Jul 2007 22:18:54 +0000 Subject: [PATCH] Fixy fixy. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2153 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/java/com/samskivert/jdbc/SimpleRepository.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/java/com/samskivert/jdbc/SimpleRepository.java b/src/java/com/samskivert/jdbc/SimpleRepository.java index 8465e388..651df95a 100644 --- a/src/java/com/samskivert/jdbc/SimpleRepository.java +++ b/src/java/com/samskivert/jdbc/SimpleRepository.java @@ -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);