]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-16419 Fix rule metadata migration
authorZipeng WU <zipeng.wu@sonarsource.com>
Wed, 25 May 2022 07:25:07 +0000 (09:25 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 25 May 2022 20:03:16 +0000 (20:03 +0000)
server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v95/PopulateRulesMetadataInRuleTable.java

index 9a91efd1e78dde59e24c9fe53116d7319f8797f7..33fe94a01bc94871deefa092366c5b3296f354d2 100644 (file)
@@ -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