]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6298 Fix group by clause for Oracle and MSSQL
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Mon, 20 Apr 2015 12:08:03 +0000 (14:08 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Mon, 20 Apr 2015 12:08:07 +0000 (14:08 +0200)
sonar-core/src/main/resources/org/sonar/core/qualityprofile/db/QualityProfileMapper.xml

index 9356b4f26d1d8c3cf16d6a8d3ca00d0d6a84a8e6..814b3fa4439c120a0e7ebb6b67f8193ed9a933e8 100644 (file)
     INNER JOIN project_qprofiles pp ON pp.project_uuid=projects.uuid
     INNER JOIN rules_profiles prof ON pp.profile_key=prof.kee
     WHERE projects.enabled=${_true}
-    GROUP BY profileKey
+    GROUP BY pp.profile_key
   </select>
 
   <select id="selectByProjectIdAndLanguage" parameterType="map" resultType="QualityProfile">