From: Jacek Date: Wed, 6 Apr 2022 10:29:42 +0000 (+0200) Subject: SONAR-16241 Fix issue with invalid data type cast during migration #3607 X-Git-Tag: 8.9.9.56886~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cf434dd03a2de3d7d5f4e791571d87159a4748e2;p=sonarqube.git SONAR-16241 Fix issue with invalid data type cast during migration #3607 --- 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;