[jOOQ/jOOQ#13326] Added more specific error message

Trivial UPDATE .. FROM to MERGE transformations (FROM <table reference>) are available in all editions. Only when there are derived tables, etc. in the FROM clause, then we need commercial SQL transformation capabilities.
This commit is contained in:
Lukas Eder 2022-04-04 11:53:48 +02:00
parent c1af0c701a
commit 3582e1a8cc

View File

@ -578,7 +578,7 @@ implements
else
s = select().from(from).orderBy(orderBy).limit(limit).asTable("s");
if (patchSource && ctx.configuration().requireCommercial(() -> "The UPDATE .. FROM to MERGE transformation requires commercial only logic. Please upgrade to the jOOQ Professional Edition or jOOQ Enterprise Edition")) {
if (patchSource && ctx.configuration().requireCommercial(() -> "The UPDATE .. FROM to MERGE transformation requires commercial only logic for non-trivial FROM clauses. Please upgrade to the jOOQ Professional Edition or jOOQ Enterprise Edition")) {