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:
mdb
2007-07-24 02:13:17 +00:00
parent 868ebd38b4
commit dd495a477a
2 changed files with 0 additions and 8 deletions
@@ -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;
}