From ea8859f7fff75f03352ce9b39dbac6b1fc68d8d9 Mon Sep 17 00:00:00 2001 From: lukaseder Date: Fri, 31 Jul 2015 17:20:56 +0200 Subject: [PATCH] [#4440] fetchMany() doesn't work with CUBRID --- jOOQ/src/main/java/org/jooq/impl/Utils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/impl/Utils.java b/jOOQ/src/main/java/org/jooq/impl/Utils.java index 6804e16003..aacd99cf03 100644 --- a/jOOQ/src/main/java/org/jooq/impl/Utils.java +++ b/jOOQ/src/main/java/org/jooq/impl/Utils.java @@ -44,6 +44,7 @@ import static java.lang.Boolean.FALSE; import static java.lang.Boolean.TRUE; import static java.util.Arrays.asList; // ... +import static org.jooq.SQLDialect.CUBRID; import static org.jooq.SQLDialect.MARIADB; import static org.jooq.SQLDialect.MYSQL; import static org.jooq.conf.BackslashEscaping.DEFAULT; @@ -2543,8 +2544,8 @@ final class Utils { log.warn("Maximum consumed results reached: " + maxConsumedResults + ". This is probably a bug. Please report to https://github.com/jOOQ/jOOQ/issues/new"); // Call this only when there was at least one ResultSet. - // Otherwise, this call is not supported by ojdbc... - if (anyResults) + // Otherwise, this call is not supported by ojdbc or CUBRID [#4440] + if (anyResults && ctx.family() != CUBRID) ctx.statement().getMoreResults(Statement.CLOSE_ALL_RESULTS); }