diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-07-11 09:49:48 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-07-11 09:49:48 +0200 |
commit | 28287efade86c3b7ada5d38481c0b6b644fe6c0a (patch) | |
tree | c2cd864a682cb89a3c4d5395ed807a449ffd42de /sonar-core/src/main | |
parent | 47cf9043f781508ab1c69a88a7a5fdca21cf10a7 (diff) | |
download | sonarqube-28287efade86c3b7ada5d38481c0b6b644fe6c0a.tar.gz sonarqube-28287efade86c3b7ada5d38481c0b6b644fe6c0a.zip |
SONAR-4490 When creating the H2 db, selected issues should be the unresolved ones and not ones with status != CLOSED
Diffstat (limited to 'sonar-core/src/main')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/persistence/DryRunDatabaseFactory.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/DryRunDatabaseFactory.java b/sonar-core/src/main/java/org/sonar/core/persistence/DryRunDatabaseFactory.java index b6cd161d28f..0111aa19950 100644 --- a/sonar-core/src/main/java/org/sonar/core/persistence/DryRunDatabaseFactory.java +++ b/sonar-core/src/main/java/org/sonar/core/persistence/DryRunDatabaseFactory.java @@ -22,12 +22,12 @@ package org.sonar.core.persistence; import com.google.common.io.Files; import org.apache.commons.dbcp.BasicDataSource; import org.sonar.api.ServerComponent; -import org.sonar.api.issue.Issue; import org.sonar.api.platform.ServerFileSystem; import org.sonar.api.utils.SonarException; import javax.annotation.Nullable; import javax.sql.DataSource; + import java.io.File; import java.io.IOException; import java.sql.SQLException; @@ -83,7 +83,7 @@ public class DryRunDatabaseFactory implements ServerComponent { String forRootModule = "(root_component_id in (select id from projects where id=" + projectId + " and qualifier='TRK'))"; String forSubModule = "(component_id in (select id from projects where id=" + projectId + " or root_id=" + projectId + "))"; - template.copyTable(source, dest, "issues", "(" + forRootModule + ") or( " + forSubModule + ")", "status<>'" + Issue.STATUS_CLOSED + "'"); + template.copyTable(source, dest, "issues", "(" + forRootModule + ") or( " + forSubModule + ")", "resolution is null"); } } |