Critical bug fix

This commit is contained in:
Andrii Shvaika 2020-11-19 17:06:54 +02:00
parent 39eafde85b
commit 3cabec954e

View File

@ -156,7 +156,7 @@ public class DefaultAlarmQueryRepository implements AlarmQueryRepository {
wherePart.append(" a.originator_id in (:entity_ids)"); wherePart.append(" a.originator_id in (:entity_ids)");
} }
} else { } else {
fromPart.append(" left join (select * from (VALUES"); fromPart.append(" inner join (select * from (VALUES");
int entityIdIdx = 0; int entityIdIdx = 0;
int lastEntityIdIdx = orderedEntityIds.size() - 1; int lastEntityIdIdx = orderedEntityIds.size() - 1;
for (EntityId entityId : orderedEntityIds) { for (EntityId entityId : orderedEntityIds) {