From 76b88cf1f5f42d331ad02df55a083325226c6224 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 31 Oct 2014 09:24:49 +0100 Subject: [PATCH] SONAR-5606 refactor MyBatis configuration of result set scrolling --- .../java/org/sonar/server/db/migrations/SelectImpl.java | 7 +------ .../test/resources/org/sonar/server/db/fake/FakeMapper.xml | 2 +- .../java/org/sonar/core/persistence/dialect/Dialect.java | 5 +++++ .../org/sonar/core/issue/db/IssueAuthorizationMapper.xml | 3 ++- .../main/resources/org/sonar/core/issue/db/IssueMapper.xml | 3 +-- .../org/sonar/core/qualityprofile/db/ActiveRuleMapper.xml | 3 ++- .../src/main/resources/org/sonar/core/rule/RuleMapper.xml | 2 +- 7 files changed, 13 insertions(+), 12 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/db/migrations/SelectImpl.java b/server/sonar-server/src/main/java/org/sonar/server/db/migrations/SelectImpl.java index b49fc88edee..11243866258 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/db/migrations/SelectImpl.java +++ b/server/sonar-server/src/main/java/org/sonar/server/db/migrations/SelectImpl.java @@ -21,7 +21,6 @@ package org.sonar.server.db.migrations; import org.apache.commons.dbutils.DbUtils; import org.sonar.core.persistence.Database; -import org.sonar.core.persistence.dialect.MySql; import java.sql.Connection; import java.sql.PreparedStatement; @@ -83,11 +82,7 @@ class SelectImpl extends BaseSqlStatement + + - select from issues i diff --git a/sonar-core/src/main/resources/org/sonar/core/qualityprofile/db/ActiveRuleMapper.xml b/sonar-core/src/main/resources/org/sonar/core/qualityprofile/db/ActiveRuleMapper.xml index a99c19cb978..0775c410de8 100644 --- a/sonar-core/src/main/resources/org/sonar/core/qualityprofile/db/ActiveRuleMapper.xml +++ b/sonar-core/src/main/resources/org/sonar/core/qualityprofile/db/ActiveRuleMapper.xml @@ -39,7 +39,8 @@ LEFT JOIN active_rules active_rule_parent ON active_rule_parent.profile_id=profile_parent.id AND a.rule_id=active_rule_parent.rule_id - select from active_rules a diff --git a/sonar-core/src/main/resources/org/sonar/core/rule/RuleMapper.xml b/sonar-core/src/main/resources/org/sonar/core/rule/RuleMapper.xml index ed20d1e0681..282f79c1058 100644 --- a/sonar-core/src/main/resources/org/sonar/core/rule/RuleMapper.xml +++ b/sonar-core/src/main/resources/org/sonar/core/rule/RuleMapper.xml @@ -41,7 +41,7 @@ from rules r - select from rules r -- 2.39.5