Fix stop rollout when using PosgreSQL (2) (#3000)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2026-04-07 09:59:34 +03:00
committed by GitHub
parent 0431936cca
commit dd593677fd

View File

@@ -626,7 +626,7 @@ public class JpaRolloutManagement implements RolloutManagement {
"SET t.assigned_distribution_set = t.installed_distribution_set, t.update_status = 1 " +
"WHERE t.id IN (" + Jpa.formatNativeQueryInClause("tid", targetIds) + ") " +
" AND (SELECT count(*) FROM sp_action a " +
" WHERE a.target=t.id and a.active=1) = 0"
" WHERE a.target = t.id and a.active = TRUE) = 0"
);
Jpa.setNativeQueryInParameter(updateQuery, "tid", targetIds);
final int updated = updateQuery.executeUpdate();