]> source.dussan.org Git - sonarqube.git/commitdiff
Fix loading of comments when more than 1000 issues
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 18 Jun 2013 14:21:35 +0000 (16:21 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 18 Jun 2013 14:21:59 +0000 (16:21 +0200)
sonar-core/src/main/resources/org/sonar/core/issue/db/IssueChangeMapper.xml

index 1620663a1ff8dd224477468ea02828e67db51112..d9d778458a0b9bd2eeee0cff57683ad1b88e4da3 100644 (file)
     select
     <include refid="issueChangeColumns"/>
     from issue_changes c
-    where c.change_type=#{changeType} and
+    where c.change_type=#{changeType} and (
     <foreach collection="issueKeys" open="c.issue_key in (" close=")" item="list" separator=") or c.issue_key in (">
       <foreach collection="list" item="element" separator=",">
         #{element}
       </foreach>
-    </foreach>
+    </foreach>)
     order by c.created_at
   </select>