aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-05-15 09:35:28 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-05-15 09:35:28 +0200
commit8bc35f10900f9d48f797a8319b90749ea613e119 (patch)
treed8fcc718a3b7cdf032c640e6838744d417cb3a5d /sonar-core
parent22c3aa036cf949a01adb358344853c45591bb86d (diff)
downloadsonarqube-8bc35f10900f9d48f797a8319b90749ea613e119.tar.gz
sonarqube-8bc35f10900f9d48f797a8319b90749ea613e119.zip
SONAR-3755 Fix query to find issues from module, package, etc.
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml b/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml
index e0e2c0f64af..57f50795d58 100644
--- a/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml
+++ b/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml
@@ -147,7 +147,7 @@
</foreach>
and rootsnapshots.project_id=rootprojects.id
and rootsnapshots.islast=${_true}
- and (s.id=rootsnapshots.id or ((s.root_snapshot_id=rootsnapshots.id or s.root_snapshot_id=rootsnapshots.parent_snapshot_id) and
+ and (s.id=rootsnapshots.id or ((s.root_snapshot_id=rootsnapshots.id or s.root_snapshot_id=rootsnapshots.root_snapshot_id) and
<choose>
<when test="_databaseId == 'mssql'">
s.path LIKE rootsnapshots.path + CAST(rootsnapshots.id AS varchar(15)) + '.%'