From cf434dd03a2de3d7d5f4e791571d87159a4748e2 Mon Sep 17 00:00:00 2001 From: Jacek Date: Wed, 6 Apr 2022 12:29:42 +0200 Subject: [PATCH] SONAR-16241 Fix issue with invalid data type cast during migration #3607 --- .../v84/groups/groupsusers/PopulateGroupsUsersGroupUuid.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v84/groups/groupsusers/PopulateGroupsUsersGroupUuid.java b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v84/groups/groupsusers/PopulateGroupsUsersGroupUuid.java index 4937bc693d2..99229b3b0c5 100644 --- a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v84/groups/groupsusers/PopulateGroupsUsersGroupUuid.java +++ b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v84/groups/groupsusers/PopulateGroupsUsersGroupUuid.java @@ -42,7 +42,7 @@ public class PopulateGroupsUsersGroupUuid extends DataChange { massUpdate.update("delete from groups_users where user_id = ? and group_id = ?"); massUpdate.execute((row, update) -> { - update.setString(1, row.getString(1)); + update.setLong(1, row.getLong(1)); update.setLong(2, row.getLong(2)); return true; -- 2.39.5