diff --git a/src/main/java/org/caosdb/server/database/backend/implementation/MySQL/DatabaseConnectionPool.java b/src/main/java/org/caosdb/server/database/backend/implementation/MySQL/DatabaseConnectionPool.java index 997de3141db6fd49ac510fa61150a2d16e7d5416..e91eab749698bce68e5bd140f8f3840322567b98 100644 --- a/src/main/java/org/caosdb/server/database/backend/implementation/MySQL/DatabaseConnectionPool.java +++ b/src/main/java/org/caosdb/server/database/backend/implementation/MySQL/DatabaseConnectionPool.java @@ -23,7 +23,6 @@ package org.caosdb.server.database.backend.implementation.MySQL; import com.google.common.base.Objects; -import java.sql.CallableStatement; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; @@ -244,20 +243,6 @@ class DatabaseConnectionPool { System.exit(1); } - // set auto_increment on table entities to the maximum entity_id of - // table transaction_log; - // Why? MYSQL seems to reset the - // auto_increment value each time the MySQL server is being - // restarted to the maximum of ids in the entities table. But if - // some of the ids had been used yet, we don't want to use them - // again. - final CallableStatement prepareCall = con.prepareCall("call initAutoIncrement()"); - try { - prepareCall.execute(); - } catch (final SQLException e) { - logger.error("Could inititialize the autoincrement value for the entities table.", e); - System.exit(1); - } } finally { con.close(); }