aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/src/main/resources
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-06-03 00:18:15 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-06-03 00:18:31 +0200
commit7ffbafde4c2ac1d11b88dc5f7a77b714faf80eec (patch)
tree611f4ab796e53dcf8aecf6740d4efa9c6ed59c3e /sonar-core/src/main/resources
parent2e004c7c6d77ffcb2b352754568bcf8a0cb21b03 (diff)
downloadsonarqube-7ffbafde4c2ac1d11b88dc5f7a77b714faf80eec.tar.gz
sonarqube-7ffbafde4c2ac1d11b88dc5f7a77b714faf80eec.zip
SONAR-3755 refactor rendering of issues
Diffstat (limited to 'sonar-core/src/main/resources')
-rw-r--r--sonar-core/src/main/resources/org/sonar/core/issue/db/IssueChangeMapper.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueChangeMapper.xml b/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueChangeMapper.xml
index ac4ca892f10..83cd957bd93 100644
--- a/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueChangeMapper.xml
+++ b/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueChangeMapper.xml
@@ -74,5 +74,13 @@
from issue_changes c
where c.change_type=#{changeType} and c.kee=#{key}
</select>
+
+ <select id="selectByIssue" parameterType="string" resultType="IssueChange">
+ select
+ <include refid="issueChangeColumns"/>
+ from issue_changes c
+ where c.issue_key=#{id}
+ order by created_at asc
+ </select>
</mapper>