Skip to content

Commit

Permalink
Fix reading from multiple collections. (#267)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Lowey-Weber <[email protected]>
  • Loading branch information
xeus2001 and Alexander Lowey-Weber authored May 22, 2024
1 parent 6cc5acd commit a9b8608
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,13 @@ Result executeRead(@NotNull ReadRequest<?> readRequest) {
}
final String props_where = sql.toString();
sql.setLength(0);
boolean first = true;
for (final String collection : collections) {
if (first) {
first = false;
} else {
sql.add(" UNION ALL ");
}
SQL headQuery = prepareQuery(collection, spatial_where, props_where, readFeatures.getLimit());
sql.add(headQuery);
if (readFeatures.isReturnAllVersions()) {
Expand Down

0 comments on commit a9b8608

Please sign in to comment.