[#1263] Pass fetchsizes <= 0 to the JDBC driver (for MySQL compatibility)
This commit is contained in:
parent
7d6392e62e
commit
52039b4b0c
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user