]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12260 fix failing DeleteFileMeasures on MsSQL
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Mon, 1 Jul 2019 15:49:24 +0000 (17:49 +0200)
committerSonarTech <sonartech@sonarsource.com>
Thu, 17 Oct 2019 13:24:47 +0000 (15:24 +0200)
server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v70/DeleteFileMeasures.java

index 58861ab22e6255f8aff9fd81b6b028a600e8bfd9..3ca285aee16959d5afd5b57672cec7c8c3d0a9b7 100644 (file)
@@ -35,7 +35,7 @@ public class DeleteFileMeasures extends DataChange {
     MassUpdate massUpdate = context.prepareMassUpdate();
     massUpdate.select("select c.uuid from projects c where c.qualifier = 'UTS' or  c.qualifier = 'FIL'");
     massUpdate.rowPluralName("files");
-    massUpdate.update("delete from project_measures pm where pm.component_uuid=?")
+    massUpdate.update("delete from project_measures where component_uuid=?")
       .setBatchSize(10);
 
     massUpdate.execute((row, update) -> {