Author: jolee
Date: 2013-05-23 15:56:46 -0400 (Thu, 23 May 2013)
New Revision: 4572
Modified:
branches/7.7.x/client/src/main/java/org/teiid/jdbc/ResultSetImpl.java
Log:
Addition of undocumented DISABLE_RESULTSET_FETCH_SIZE system property check
Modified: branches/7.7.x/client/src/main/java/org/teiid/jdbc/ResultSetImpl.java
===================================================================
--- branches/7.7.x/client/src/main/java/org/teiid/jdbc/ResultSetImpl.java 2013-05-23
19:23:42 UTC (rev 4571)
+++ branches/7.7.x/client/src/main/java/org/teiid/jdbc/ResultSetImpl.java 2013-05-23
19:56:46 UTC (rev 4572)
@@ -54,6 +54,7 @@
import org.teiid.core.types.SQLXMLImpl;
import org.teiid.core.types.Streamable;
import org.teiid.core.types.XMLType;
+import org.teiid.core.util.PropertiesUtils;
import org.teiid.core.util.SqlUtil;
import org.teiid.core.util.TimestampWithTimezone;
import org.teiid.jdbc.BatchResults.Batch;
@@ -73,6 +74,7 @@
private static Logger logger = Logger.getLogger("org.teiid.jdbc");
//$NON-NLS-1$
private static final int BEFORE_FIRST_ROW = 0;
+ public static final boolean DISABLE_RESULTSET_FETCH_SIZE =
PropertiesUtils.getBooleanProperty(System.getProperties(),
"org.teiid.disableResultSetFetchSize",false);
// the object which was last read from Results
private Object currentValue;
@@ -1370,7 +1372,7 @@
// sets the fetch size on this statement
if (rows == 0) {
this.fetchSize = BaseDataSource.DEFAULT_FETCH_SIZE;
- } else {
+ } else if (!(DISABLE_RESULTSET_FETCH_SIZE)) {
this.fetchSize = rows;
}
}
Show replies by date