[jOOQ/jOOQ#19219] Work around ojdbc returning RESTRICT instead of NO_ACTION in MetaImpl

This commit is contained in:
Lukas Eder 2025-10-16 11:19:56 +02:00
parent 8537aff9c7
commit 16cd10a484

View File

@ -1474,7 +1474,18 @@ final class MetaImpl extends AbstractMeta {
}
private final ForeignKeyRule foreignKeyRule(Integer code) {
return code == null ? null : JDBCUtils.foreignKeyRule(code);
if (code == null)
return null;
ForeignKeyRule result = JDBCUtils.foreignKeyRule(code);
return result;
}
@SuppressWarnings("unchecked")