Skip to content
Snippets Groups Projects
Commit abbe3cbc authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: query with no index

parent 1ad05902
No related branches found
No related tags found
2 merge requests!96DOC: Added CITATION.cff to the list of files in the release guide where the...,!81ENH: apply paging such that no unwanted jobs are being triggered
Pipeline #33094 passed
......@@ -59,7 +59,9 @@ public class ExecuteQuery extends FlagJob {
int index2 = getTransaction().getPagingIndex2();
int ii = 0;
for (final EntityInterface entity : getContainer()) {
if (!(getTransaction() instanceof Retrieve) || (ii >= index1 && ii < index2)) {
if (!(getTransaction() instanceof Retrieve)
|| !getTransaction().hasPaging()
|| (ii >= index1 && ii < index2)) {
getTransaction().getSchedule().addAll(loadJobs(entity, getTransaction()));
} else {
entity.setEntityStatus(EntityStatus.IGNORE);
......
......@@ -62,6 +62,7 @@ public abstract class Transaction<C extends TransactionContainer> extends Abstra
private final C container;
private int pagingIndex1;
private int pagingIndex2;
private boolean ThasPaging = false;
private Access access = null;
private final Schedule schedule = new Schedule();
......@@ -84,7 +85,12 @@ public abstract class Transaction<C extends TransactionContainer> extends Abstra
return this.container;
}
public boolean hasPaging() {
return ThasPaging;
}
public void setPagingIndices(int index1, int index2) {
ThasPaging = true;
pagingIndex1 = index1;
pagingIndex2 = index2;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment