Skip to content
Snippets Groups Projects
Verified Commit fad8718d authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: String IDs

parent 8b3d6bd1
No related branches found
No related tags found
2 merge requests!105Release 0.11.0,!78External IDs
Pipeline #41660 failed
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment