diff --git a/jOOQ-meta/src/main/java/org/jooq/meta/AbstractTypedElementDefinition.java b/jOOQ-meta/src/main/java/org/jooq/meta/AbstractTypedElementDefinition.java index e56eb2d760..37f85a890e 100644 --- a/jOOQ-meta/src/main/java/org/jooq/meta/AbstractTypedElementDefinition.java +++ b/jOOQ-meta/src/main/java/org/jooq/meta/AbstractTypedElementDefinition.java @@ -326,7 +326,12 @@ public abstract class AbstractTypedElementDefinition // matching customType, the user probably malconfigured // their or else { - log.warn("Bad configuration for " + forcedType.getName() + ". No matching found, and no matching SQLDataType found: " + forcedType); + + // [#7373] [#10944] Refer to only if someone is still using the feature + if (db.getConfiguredCustomTypes().isEmpty()) + log.warn("Bad configuration for " + forcedType.getName() + ". No matching SQLDataType found: " + forcedType); + else + log.warn("Bad configuration for " + forcedType.getName() + ". No matching found, and no matching SQLDataType found: " + forcedType); } } }