From c1672e6738167fb97184cfe0117d296263ff5eba Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Mon, 1 Jul 2013 09:58:35 +0200 Subject: [PATCH] Remove fetchSize in issues SQL and reactivate previously deactivated unit test --- .../org/sonar/core/issue/db/IssueMapper.xml | 77 +++++-------------- .../sonar/core/issue/db/IssueStatsMapper.xml | 2 +- 2 files changed, 22 insertions(+), 57 deletions(-) diff --git a/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml b/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml index 3f1d11dd81b..f407ec3289a 100644 --- a/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml +++ b/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml @@ -201,72 +201,37 @@ - + select + from issues i + inner join rules r on r.id=i.rule_id + inner join projects p on p.id=i.component_id + inner join projects root on root.id=i.root_component_id - - limit #{maxResults} - + + + - + select top (#{maxResults}) i.id + from issues i - select * from (select - - - i.id - - - - - from issues i - inner join rules r on r.id=i.rule_id - inner join projects p on p.id=i.component_id - inner join projects root on root.id=i.root_component_id - - - + i.id + from issues i + ) - - where rownum <= #{maxResults} - + where rownum <= #{maxResults} diff --git a/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueStatsMapper.xml b/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueStatsMapper.xml index accae5e1b88..5369af45148 100644 --- a/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueStatsMapper.xml +++ b/sonar-core/src/main/resources/org/sonar/core/issue/db/IssueStatsMapper.xml @@ -4,7 +4,7 @@ - select i.assignee -- 2.39.5