[jOOQ/jOOQ#18481] Diff generates CREATE VIEW statements that depend on

not-yet existing tables
This commit is contained in:
Lukas Eder 2025-05-19 17:32:44 +02:00
parent e309ddb960
commit 6ed23f2c45

View File

@ -979,6 +979,7 @@ final class Diff {
}
static final int sortIndex(Query q) {
final int VIEW = 5;
final int FKEY = 4;
final int CONS = 3;
final int NULL = 2;
@ -1017,6 +1018,10 @@ final class Diff {
return -CONS;
else if (q instanceof QOM.CreateIndex)
return CONS;
else if (q instanceof QOM.DropView)
return -VIEW;
else if (q instanceof QOM.CreateView)
return VIEW;
else
return 0;
}