[jOOQ/jOOQ#17672] Misleading warning about configured schemas in code generator, when the database doesn't supply any schemata
This commit is contained in:
parent
c743b89844
commit
073411a51d
@ -835,6 +835,8 @@ public abstract class AbstractDatabase implements Database {
|
||||
if (schemata == null) {
|
||||
schemata = new ArrayList<>();
|
||||
|
||||
// [#17672] Eager initialise the input schemata in case getSchemata0() doesn't return any.
|
||||
getInputSchemata();
|
||||
onError(ERROR, "Could not load schemata", () -> schemata = sort(getSchemata0()));
|
||||
schemata.removeIf(schema -> !getInputSchemata().contains(schema.getName()));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user