Skip to content

Commit

Permalink
fixed temporalattr storage with location
Browse files Browse the repository at this point in the history
  • Loading branch information
ScorpioBroker committed Aug 16, 2023
1 parent 4151129 commit 63241ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public Uni<Void> batchUpsertHistoryEntity(BatchRequest request) {
}
if (!batchAttribsWtihLocation.isEmpty()) {
sql = "INSERT INTO " + DBConstants.DBTABLE_TEMPORALENTITY_ATTRIBUTEINSTANCE
+ " (temporalentity_id, attributeid, data) VALUES ($1, $2, $3::jsonb, ST_SetSRID(ST_GeomFromGeoJSON(getGeoJson($4)), 4326))";
+ " (temporalentity_id, attributeid, data, location) VALUES ($1, $2, $3::jsonb, ST_SetSRID(ST_GeomFromGeoJSON(getGeoJson($4)), 4326))";
logger.debug("batch location " + sql);
attribList.add(client.preparedQuery(sql).executeBatch(batchAttribsWtihLocation));
}
Expand Down

0 comments on commit 63241ec

Please sign in to comment.