[#1263] Pass fetchsizes <= 0 to the JDBC driver (for MySQL compatibility)

This commit is contained in:
Lukas Eder 2012-03-31 05:41:04 +00:00
parent 7d6392e62e
commit 52039b4b0c

View File

@ -116,7 +116,9 @@ abstract class AbstractResultQuery<R extends Record> extends AbstractQuery imple
protected final void prepare(ExecuteContext ctx) throws SQLException {
super.prepare(ctx);
if (size > 0) {
// [#1263] Allow for negative fetch sizes to support some non-standard
// MySQL feature, where Integer.MIN_VALUE is used
if (size != 0) {
if (log.isDebugEnabled())
log.debug("Setting fetch size", size);