Fixy fixy.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2153 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user