[jOOQ/jOOQ#11239] Generated order of check constraints does not respect

Database::getOrderProvider
This commit is contained in:
Lukas Eder 2021-01-14 17:14:36 +01:00
parent bb2ce3a43b
commit 62d40aaf1b

View File

@ -424,6 +424,7 @@ public class DefaultRelations implements Relations {
if (checkConstraintsByTable == null) {
checkConstraintsByTable = new LinkedHashMap<>();
checkConstraints.forEach((k, v) -> checkConstraintsByTable.computeIfAbsent(k.table, t -> new ArrayList<>()).add(v));
checkConstraintsByTable.forEach((t, l) -> table.getDatabase().sort(l));
}
List<CheckConstraintDefinition> list = checkConstraintsByTable.get(table);