Skip to content
Snippets Groups Projects

fix SELECT name FROM ENTITY

Merged Timm Fitschen requested to merge f-select-name-from-entity into dev
Files
3
@@ -206,7 +206,7 @@ public class Query implements QueryInterface, ToElementable, TransactionInterfac
}
}
private static boolean filterEntitiesWithoutRetrievePermisions =
private boolean filterEntitiesWithoutRetrievePermisions =
!CaosDBServer.getServerProperty(
ServerProperties.KEY_QUERY_FILTER_ENTITIES_WITHOUT_RETRIEVE_PERMISSIONS)
.equalsIgnoreCase("FALSE");
@@ -663,13 +663,15 @@ public class Query implements QueryInterface, ToElementable, TransactionInterfac
if (this.container != null && this.type == Type.FIND) {
for (final IdVersionPair p : this.resultSet) {
final Entity e = new RetrieveEntity(p.id, p.version);
if (p.id > 99) {
final Entity e = new RetrieveEntity(p.id, p.version);
// if query has select-clause:
if (this.selections != null && !this.selections.isEmpty()) {
e.addSelections(this.selections);
// if query has select-clause:
if (this.selections != null && !this.selections.isEmpty()) {
e.addSelections(this.selections);
}
this.container.add(e);
}
this.container.add(e);
}
}
return this;
Loading