aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-dbcleaner-plugin/src/main
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-12-01 11:30:48 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-12-01 11:30:48 +0000
commite537ea6120df8eb20ba04da66811c21161f6ec6d (patch)
treee0e5898938290b5506bb834106c908780125ff88 /plugins/sonar-dbcleaner-plugin/src/main
parent0441e5cb03ef5fcd21f681682a994437e985768d (diff)
downloadsonarqube-e537ea6120df8eb20ba04da66811c21161f6ec6d.tar.gz
sonarqube-e537ea6120df8eb20ba04da66811c21161f6ec6d.zip
SONAR-2007 Remove the useless ISO Categories + fix components page
Diffstat (limited to 'plugins/sonar-dbcleaner-plugin/src/main')
-rw-r--r--plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/purges/PurgeRuleMeasures.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/purges/PurgeRuleMeasures.java b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/purges/PurgeRuleMeasures.java
index c0eb8f36207..52943fcbef9 100644
--- a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/purges/PurgeRuleMeasures.java
+++ b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/purges/PurgeRuleMeasures.java
@@ -48,7 +48,7 @@ public final class PurgeRuleMeasures extends Purge {
private void purge(Integer sid) {
Query query = getSession().createQuery("SELECT m.id FROM " + MeasureModel.class.getSimpleName() + " m, " + Snapshot.class.getSimpleName() + " s WHERE s.id = m.snapshotId and " +
- "(s.rootId=:rootSid OR s.id=:rootSid) and (m.ruleId is not null or m.rulesCategoryId is not null or m.rulePriority is not null)");
+ "(s.rootId=:rootSid OR s.id=:rootSid) and (m.ruleId is not null or m.rulePriority is not null)");
query.setParameter("rootSid", sid);
List<Integer> measureIds = query.getResultList();
PurgeUtils.deleteMeasuresById(getSession(), measureIds);