]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4301 Fix sql query
authorJulien Lancelot <julien.lancelot@gmail.com>
Fri, 24 May 2013 13:58:24 +0000 (15:58 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Fri, 24 May 2013 13:58:24 +0000 (15:58 +0200)
sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml

index 52d9f3d4aa664c625b9adc62325f0d3d590554e1..90e60093e22150f1487e552860c5a78b15c9ab30 100644 (file)
     </where>
   </select>
 
-  <select id="selectIssueAndProjectIds" parameterType="map" resultType="Issue" >
+  <select id="selectIssueAndProjectIds" parameterType="map" resultType="Issue" fetchSize="100000">
     select i.id, i.project_id as projectId
     <include refid="sortColumn"/>
     <include refid="selectQueryConditions"/>
   </select>
 
   <!-- SQL Server -->
-  <select id="selectIssueAndProjectIds" parameterType="map" resultType="Issue" databaseId="mssql">
+  <select id="selectIssueAndProjectIds" parameterType="map" resultType="Issue" fetchSize="100000" databaseId="mssql">
     select top (#{maxResults}) i.id, i.project_id as projectId
     <include refid="sortColumn"/>
     <include refid="selectQueryConditions"/>