From cf78e603f86a0404b8a5d634d7736db7e671996f Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Wed, 27 Mar 2024 15:00:26 +0100 Subject: [PATCH] [jOOQ/jOOQ#15732] Support DELETE .. USING --- jOOQ/src/main/java/org/jooq/DeleteQuery.java | 7 ++++--- .../src/main/java/org/jooq/DeleteUsingStep.java | 17 +++++++++-------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/DeleteQuery.java b/jOOQ/src/main/java/org/jooq/DeleteQuery.java index eab7ccc3a9..c13f276b83 100644 --- a/jOOQ/src/main/java/org/jooq/DeleteQuery.java +++ b/jOOQ/src/main/java/org/jooq/DeleteQuery.java @@ -44,6 +44,7 @@ package org.jooq; // ... // ... // ... +import static org.jooq.SQLDialect.DUCKDB; import static org.jooq.SQLDialect.FIREBIRD; import static org.jooq.SQLDialect.H2; import static org.jooq.SQLDialect.MARIADB; @@ -82,19 +83,19 @@ public interface DeleteQuery extends ConditionProvider, Delete /** * Add tables to the USING clause. */ - @Support({ MARIADB, MYSQL, POSTGRES }) + @Support({ DUCKDB, MARIADB, MYSQL, POSTGRES }) void addUsing(TableLike table); /** * Add tables to the USING clause. */ - @Support({ MARIADB, MYSQL, POSTGRES }) + @Support({ DUCKDB, MARIADB, MYSQL, POSTGRES }) void addUsing(TableLike... tables); /** * Add tables to the USING clause. */ - @Support({ MARIADB, MYSQL, POSTGRES }) + @Support({ DUCKDB, MARIADB, MYSQL, POSTGRES }) void addUsing(Collection> tables); // ------------------------------------------------------------------------ diff --git a/jOOQ/src/main/java/org/jooq/DeleteUsingStep.java b/jOOQ/src/main/java/org/jooq/DeleteUsingStep.java index ccb71f977a..07df656659 100644 --- a/jOOQ/src/main/java/org/jooq/DeleteUsingStep.java +++ b/jOOQ/src/main/java/org/jooq/DeleteUsingStep.java @@ -41,6 +41,7 @@ package org.jooq; // ... // ... // ... +import static org.jooq.SQLDialect.DUCKDB; import static org.jooq.SQLDialect.MARIADB; import static org.jooq.SQLDialect.MYSQL; // ... @@ -94,21 +95,21 @@ public interface DeleteUsingStep extends DeleteWhereStep { * Add a USING clause to the query. */ @NotNull @CheckReturnValue - @Support({ MARIADB, MYSQL, POSTGRES }) + @Support({ DUCKDB, MARIADB, MYSQL, POSTGRES }) DeleteWhereStep using(TableLike table); /** * Add a USING clause to the query. */ @NotNull @CheckReturnValue - @Support({ MARIADB, MYSQL, POSTGRES }) + @Support({ DUCKDB, MARIADB, MYSQL, POSTGRES }) DeleteWhereStep using(TableLike... tables); /** * Add a USING clause to the query. */ @NotNull @CheckReturnValue - @Support({ MARIADB, MYSQL, POSTGRES }) + @Support({ DUCKDB, MARIADB, MYSQL, POSTGRES }) DeleteWhereStep using(Collection> tables); /** @@ -123,7 +124,7 @@ public interface DeleteUsingStep extends DeleteWhereStep { * @see SQL */ @NotNull @CheckReturnValue - @Support({ MARIADB, MYSQL, POSTGRES }) + @Support({ DUCKDB, MARIADB, MYSQL, POSTGRES }) @PlainSQL DeleteWhereStep using(SQL sql); @@ -139,7 +140,7 @@ public interface DeleteUsingStep extends DeleteWhereStep { * @see SQL */ @NotNull @CheckReturnValue - @Support({ MARIADB, MYSQL, POSTGRES }) + @Support({ DUCKDB, MARIADB, MYSQL, POSTGRES }) @PlainSQL DeleteWhereStep using(String sql); @@ -156,7 +157,7 @@ public interface DeleteUsingStep extends DeleteWhereStep { * @see SQL */ @NotNull @CheckReturnValue - @Support({ MARIADB, MYSQL, POSTGRES }) + @Support({ DUCKDB, MARIADB, MYSQL, POSTGRES }) @PlainSQL DeleteWhereStep using(String sql, Object... bindings); @@ -173,7 +174,7 @@ public interface DeleteUsingStep extends DeleteWhereStep { * @see SQL */ @NotNull @CheckReturnValue - @Support({ MARIADB, MYSQL, POSTGRES }) + @Support({ DUCKDB, MARIADB, MYSQL, POSTGRES }) @PlainSQL DeleteWhereStep using(String sql, QueryPart... parts); @@ -183,6 +184,6 @@ public interface DeleteUsingStep extends DeleteWhereStep { * @see DSL#table(Name) */ @NotNull @CheckReturnValue - @Support({ MARIADB, MYSQL, POSTGRES }) + @Support({ DUCKDB, MARIADB, MYSQL, POSTGRES }) DeleteWhereStep using(Name name); }