From b461d2a5728c0d2df2734b2dfe49231aa801ce01 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Fri, 5 Jul 2013 16:30:38 +0200 Subject: [PATCH] SONAR-4460 Remove fetchSize on measure filters --- .../java/org/sonar/core/measure/MeasureFilterSql.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/sonar-core/src/main/java/org/sonar/core/measure/MeasureFilterSql.java b/sonar-core/src/main/java/org/sonar/core/measure/MeasureFilterSql.java index 6b8b877b285..a2f0d54703b 100644 --- a/sonar-core/src/main/java/org/sonar/core/measure/MeasureFilterSql.java +++ b/sonar-core/src/main/java/org/sonar/core/measure/MeasureFilterSql.java @@ -30,18 +30,12 @@ import org.sonar.core.resource.SnapshotDto; import javax.annotation.Nullable; -import java.sql.Connection; -import java.sql.Date; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Timestamp; +import java.sql.*; import java.util.Comparator; import java.util.List; class MeasureFilterSql { - private static final int FETCH_SIZE = 1000; private final Database database; private final MeasureFilter filter; private final MeasureFilterContext context; @@ -57,7 +51,6 @@ class MeasureFilterSql { List execute(Connection connection) throws SQLException { PreparedStatement statement = connection.prepareStatement(sql); - statement.setFetchSize(FETCH_SIZE); ResultSet rs = null; try { for (int index = 0; index < dateParameters.size(); index++) { -- 2.39.5