Skip to content

Commit 1a5afbc

Browse files
strailovavgustinmm
andauthored
Fix stop rollout when using PosgreSQL (2) (#3000) (#3001)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com> Co-authored-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
1 parent 0431936 commit 1a5afbc

File tree

1 file changed

+1
-1
lines changed
  • hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/management

1 file changed

+1
-1
lines changed

hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/management/JpaRolloutManagement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ private int updateTargetAssignedDsWithInstalledIfNoActiveActions(List<Long> targ
626626
"SET t.assigned_distribution_set = t.installed_distribution_set, t.update_status = 1 " +
627627
"WHERE t.id IN (" + Jpa.formatNativeQueryInClause("tid", targetIds) + ") " +
628628
" AND (SELECT count(*) FROM sp_action a " +
629-
" WHERE a.target=t.id and a.active=1) = 0"
629+
" WHERE a.target = t.id and a.active = TRUE) = 0"
630630
);
631631
Jpa.setNativeQueryInParameter(updateQuery, "tid", targetIds);
632632
final int updated = updateQuery.executeUpdate();

0 commit comments

Comments
 (0)