delete increment immediately

This commit is contained in:
Wisser
2018-11-07 07:23:36 +01:00
parent 83442babd4
commit 7ab6e60fdd
@@ -277,8 +277,7 @@ public class IntraDatabaseEntityGraph extends RemoteEntityGraph {
}
readMarkedEntities(table, orderByPK);
session.executeUpdate(
"Update " + SQLDialect.dmlTableReference(ENTITY, session, executionContext) + " " +
"Set birthday=-1 " +
"Delete from " + SQLDialect.dmlTableReference(ENTITY, session, executionContext) + " " +
"Where birthday=0 and r_entitygraph=" + graphID + " " +
"and type=" + typeName(table) + "");
if (rc != incSize) {