diff --git a/db-scheduler-ui/src/main/java/no/bekk/dbscheduler/ui/service/LogLogic.java b/db-scheduler-ui/src/main/java/no/bekk/dbscheduler/ui/service/LogLogic.java index ccedf2a2..f27d97f5 100644 --- a/db-scheduler-ui/src/main/java/no/bekk/dbscheduler/ui/service/LogLogic.java +++ b/db-scheduler-ui/src/main/java/no/bekk/dbscheduler/ui/service/LogLogic.java @@ -15,6 +15,7 @@ import java.sql.ResultSet; import java.sql.SQLException; +import java.sql.Timestamp; import java.time.Instant; import java.util.*; import javax.sql.DataSource; @@ -132,7 +133,7 @@ public String getQueryPart() { @Override public void setParameters(MapSqlParameterSource p) { - p.addValue(varName, value); + p.addValue(varName, value == null ? null : Timestamp.from(value)); } }