From 03b0d005728f605f9fe0af2a9c3f2f6eee545978 Mon Sep 17 00:00:00 2001 From: Zipeng WU Date: Wed, 25 May 2022 09:25:07 +0200 Subject: [PATCH] SONAR-16419 Fix rule metadata migration --- .../migration/version/v95/PopulateRulesMetadataInRuleTable.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/v95/PopulateRulesMetadataInRuleTable.java b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v95/PopulateRulesMetadataInRuleTable.java index 9a91efd1e78..33fe94a01bc 100644 --- a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v95/PopulateRulesMetadataInRuleTable.java +++ b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v95/PopulateRulesMetadataInRuleTable.java @@ -45,7 +45,7 @@ public class PopulateRulesMetadataInRuleTable extends DataChange { " tags = ?, ad_hoc_name = ?, ad_hoc_description = ?, ad_hoc_severity = ?, ad_hoc_type = ? where uuid = ?"); massUpdate.execute((row, update) -> { - update.setBytes(1, row.getBytes(1)); // note_data + update.setString(1, row.getString(1)); // note_data update.setString(2, row.getString(2)); // note_user_uuid update.setLong(3, row.getLong(3)); // note_created_at update.setLong(4, row.getLong(4)); // note_updated_at -- 2.39.5