]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-16241 Fix issue with invalid data type cast during migration #3607
authorJacek <jacek.poreda@sonarsource.com>
Wed, 6 Apr 2022 10:29:42 +0000 (12:29 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 7 Apr 2022 20:03:43 +0000 (20:03 +0000)
server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v84/groups/groupsusers/PopulateGroupsUsersGroupUuid.java

index 4937bc693d297a483c621a14d3ec308aab0c0a7f..99229b3b0c5ac873883f59d9e64d910b94e21589 100644 (file)
@@ -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;