From 5108d7c1925043a172f2ee66d00490590cca280d Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Fri, 27 Mar 2020 16:19:54 +0100 Subject: [PATCH] [jOOQ/jOOQ#9999] Work around CockroachDB's wrong implementation of IS NULL predicate --- jOOQ/src/main/java/org/jooq/impl/RowIsNull.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/impl/RowIsNull.java b/jOOQ/src/main/java/org/jooq/impl/RowIsNull.java index c979dbc150..082575e748 100644 --- a/jOOQ/src/main/java/org/jooq/impl/RowIsNull.java +++ b/jOOQ/src/main/java/org/jooq/impl/RowIsNull.java @@ -42,6 +42,7 @@ import static org.jooq.Clause.CONDITION_IS_NOT_NULL; import static org.jooq.Clause.CONDITION_IS_NULL; // ... // ... +// ... import static org.jooq.SQLDialect.CUBRID; // ... import static org.jooq.SQLDialect.DERBY; @@ -112,8 +113,11 @@ final class RowIsNull extends AbstractCondition { private final QueryPartInternal delegate(Configuration configuration) { - // CUBRID 9, HSQLDB, and Vertica have incorrect implementations of the NULL predicate. - // Informix doesn't implement the RVE IS NULL predicate. + + + + + if (EMULATE_NULL.contains(configuration.family())) { Field[] fields = row.fields(); List conditions = new ArrayList<>(fields.length);