aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-04-27 11:51:19 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-04-28 09:02:06 +0200
commita4a612e42fb8ed12b0a7c4f3f60294bbb233a5c8 (patch)
tree19886cc33f1395999b6d310033ca5ed979d39108 /sonar-core
parentfaadd654f06e3661fd6c2dfa0708cfe96818f53d (diff)
downloadsonarqube-a4a612e42fb8ed12b0a7c4f3f60294bbb233a5c8.tar.gz
sonarqube-a4a612e42fb8ed12b0a7c4f3f60294bbb233a5c8.zip
SONAR-6428 Apply feedback from PR
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/resources/org/sonar/core/measure/db/MeasureMapper.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-core/src/main/resources/org/sonar/core/measure/db/MeasureMapper.xml b/sonar-core/src/main/resources/org/sonar/core/measure/db/MeasureMapper.xml
index 110a48de4e8..a1a0276bfc6 100644
--- a/sonar-core/src/main/resources/org/sonar/core/measure/db/MeasureMapper.xml
+++ b/sonar-core/src/main/resources/org/sonar/core/measure/db/MeasureMapper.xml
@@ -84,7 +84,7 @@
</insert>
<select id="selectMetricKeysForSnapshot" parameterType="long" resultType="string">
- SELECT m.name
+ SELECT DISTINCT m.name
FROM project_measures pm
INNER JOIN metrics m ON m.id=pm.metric_id
WHERE pm.snapshot_id=#{snapshotId}