Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
clausnagel committed Jan 5, 2025
1 parent c321692 commit a42f585
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,21 @@ public FeatureDescriptor doImport(Feature feature) throws ImportException, SQLEx
if (terminationDate != null) {
stmt.setObject(12, terminationDate);
} else {
stmt.setNull(12, Types.TIMESTAMP);
stmt.setNull(12, Types.TIMESTAMP_WITH_TIMEZONE);
}

OffsetDateTime validFrom = feature.getValidFrom().orElse(null);
if (validFrom != null) {
stmt.setObject(13, validFrom);
} else {
stmt.setNull(13, Types.TIMESTAMP);
stmt.setNull(13, Types.TIMESTAMP_WITH_TIMEZONE);
}

OffsetDateTime validTo = feature.getValidTo().orElse(null);
if (validTo != null) {
stmt.setObject(14, validTo);
} else {
stmt.setNull(14, Types.TIMESTAMP);
stmt.setNull(14, Types.TIMESTAMP_WITH_TIMEZONE);
}

addBatch();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private PropertyDescriptor doImport(Attribute attribute, long propertyId, long p
if (timestamp != null) {
stmt.setObject(10, timestamp);
} else {
stmt.setNull(10, Types.TIMESTAMP);
stmt.setNull(10, Types.TIMESTAMP_WITH_TIMEZONE);
}

stmt.setString(11, attribute.getURI().orElse(null));
Expand Down

0 comments on commit a42f585

Please sign in to comment.