aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db/src/main/resources/org/sonar/db/qualitygate/ProjectQgateAssociationMapper.xml
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-db/src/main/resources/org/sonar/db/qualitygate/ProjectQgateAssociationMapper.xml')
-rw-r--r--sonar-db/src/main/resources/org/sonar/db/qualitygate/ProjectQgateAssociationMapper.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/sonar-db/src/main/resources/org/sonar/db/qualitygate/ProjectQgateAssociationMapper.xml b/sonar-db/src/main/resources/org/sonar/db/qualitygate/ProjectQgateAssociationMapper.xml
index fe6683b58db..01203faf49a 100644
--- a/sonar-db/src/main/resources/org/sonar/db/qualitygate/ProjectQgateAssociationMapper.xml
+++ b/sonar-db/src/main/resources/org/sonar/db/qualitygate/ProjectQgateAssociationMapper.xml
@@ -32,4 +32,13 @@
ORDER BY proj.name
</select>
+ <select id="selectQGateIdByComponentId" parameterType="long" resultType="string">
+ SELECT text_value
+ FROM properties
+ <where>
+ AND resource_id=#{componentId}
+ AND prop_key='sonar.qualitygate'
+ </where>
+ </select>
+
</mapper>