File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
citydb-operation/src/main/java/org/citydb/operation/deleter/feature Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ protected PreparedStatement getDeleteStatement(Connection connection) throws SQL
51
51
helper .getOptions ().getLineage ().ifPresent (lineage ->
52
52
stmt .append (", lineage = '" ).append (lineage ).append ("'" ));
53
53
54
- stmt .append (" where id = ? and termination_date is null " );
54
+ stmt .append (" where id = ?" );
55
55
return connection .prepareStatement (stmt .toString ());
56
56
} else {
57
57
return connection .prepareCall ("{call citydb_pkg.delete_feature(?, ?)}" );
@@ -69,7 +69,7 @@ protected void executeBatch(Long[] ids) throws SQLException {
69
69
.orElse (helper .getAdapter ().getConnectionDetails ().getUser ());
70
70
71
71
for (long id : ids ) {
72
- OffsetDateTime now = OffsetDateTime .now ();
72
+ OffsetDateTime now = OffsetDateTime .now (). withNano ( 0 ) ;
73
73
stmt .setObject (1 , helper .getOptions ().getTerminationDate ().orElse (now ));
74
74
stmt .setObject (2 , now );
75
75
stmt .setString (3 , updatingPerson );
You can’t perform that action at this time.
0 commit comments