From 7aafff6e1fa4f24920435de23d1cb7e9486f4315 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Wed, 23 Apr 2025 14:33:57 +0200 Subject: [PATCH] [jOOQ/jOOQ#18337] Wrong SQL generated when using inline derived table in UPDATE .. RETURNING emulation using UPSERT in MariaDB --- jOOQ/src/main/java/org/jooq/impl/InsertQueryImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jOOQ/src/main/java/org/jooq/impl/InsertQueryImpl.java b/jOOQ/src/main/java/org/jooq/impl/InsertQueryImpl.java index fc84bcc954..e6e8bcead4 100644 --- a/jOOQ/src/main/java/org/jooq/impl/InsertQueryImpl.java +++ b/jOOQ/src/main/java/org/jooq/impl/InsertQueryImpl.java @@ -406,6 +406,8 @@ implements + + if ((onDuplicateKeyIgnore || onDuplicateKeyUpdate) && ctx.configuration().requireCommercial(() -> "InlineDerivedTable emulation for INSERT .. ON DUPLICATE KEY clauses is available in the commercial jOOQ editions only")) {