Test and additional fix for #56 - Using findIterate with MySQL streams

the entire result set at once
This commit is contained in:
Rob Bygrave committed 2014-05-15 22:08:23 +12:00
1 parent b7f6596bcb
commit fffda7c789
3 files changed
+128

No files matched your search

@@ -363,6 +363,7 @@ public class CQuery<T> implements DbReadContext, CancelableQuery {
if (forwardOnlyHint) {
// Use forward only hints for large resultset processing (Issue 56, MySql specific)
pstmt = conn.prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
pstmt.setFetchSize(Integer.MIN_VALUE);
} else {
pstmt = conn.prepareStatement(sql);
}