Nix setting auto-commit here. It has to be done in a way that coordinates with
SimpleRepository's synchronization if we're going to be mixing Depot and SimpleRepository so we'll either do that or we'll take a look at how JDBC's native connection pooling handles this. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2135 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -71,7 +71,6 @@ public class LiaisonRegistry
|
||||
throws SQLException
|
||||
{
|
||||
return getLiaison(conn.getMetaData().getURL());
|
||||
|
||||
}
|
||||
|
||||
protected static void registerLiaisonClass (Class<? extends DatabaseLiaison> lclass)
|
||||
|
||||
@@ -181,13 +181,6 @@ public class StaticConnectionProvider implements ConnectionProvider
|
||||
_idents.put(mapkey, conmap);
|
||||
}
|
||||
|
||||
// in case the previous user turned off auto-commit we have to make sure here it's on
|
||||
try {
|
||||
conmap.connection.setAutoCommit(true);
|
||||
} catch (SQLException e) {
|
||||
throw new PersistenceException("Failed to turn on connection auto-commit", e);
|
||||
}
|
||||
|
||||
return conmap.connection;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user