From 696d953036b014d40558e0de02bd4d3edf2580be Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Thu, 2 May 2019 11:33:13 +0200 Subject: [PATCH] [#8588] Add SQLite support for partial indexes Adds SQLite to the @Support annotations of CreateIndexWhereStep. --- .../java/org/jooq/CreateIndexWhereStep.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/CreateIndexWhereStep.java b/jOOQ/src/main/java/org/jooq/CreateIndexWhereStep.java index d6b8bf2f21..765d3c8b82 100644 --- a/jOOQ/src/main/java/org/jooq/CreateIndexWhereStep.java +++ b/jOOQ/src/main/java/org/jooq/CreateIndexWhereStep.java @@ -39,6 +39,7 @@ package org.jooq; // ... import static org.jooq.SQLDialect.POSTGRES; +import static org.jooq.SQLDialect.SQLITE; // ... import java.util.Collection; @@ -74,27 +75,27 @@ public interface CreateIndexWhereStep extends CreateIndexFinalStep { * Add a WHERE clause to create a partial index, connecting * them with each other with {@link Operator#AND}. */ - @Support({ POSTGRES }) + @Support({ POSTGRES, SQLITE }) CreateIndexFinalStep where(Condition condition); /** * Add a WHERE clause to create a partial index, connecting * them with each other with {@link Operator#AND}. */ - @Support({ POSTGRES }) + @Support({ POSTGRES, SQLITE }) CreateIndexFinalStep where(Condition... conditions); /** * Add a WHERE clause to create a partial index, connecting * them with each other with {@link Operator#AND}. */ - @Support({ POSTGRES }) + @Support({ POSTGRES, SQLITE }) CreateIndexFinalStep where(Collection conditions); /** * Add a WHERE clause to create a partial index. */ - @Support({ POSTGRES }) + @Support({ POSTGRES, SQLITE }) CreateIndexFinalStep where(Field field); /** @@ -108,7 +109,7 @@ public interface CreateIndexWhereStep extends CreateIndexFinalStep { * @see DSL#condition(SQL) * @see SQL */ - @Support({ POSTGRES }) + @Support({ POSTGRES, SQLITE }) @PlainSQL CreateIndexFinalStep where(SQL sql); @@ -123,7 +124,7 @@ public interface CreateIndexWhereStep extends CreateIndexFinalStep { * @see DSL#condition(String) * @see SQL */ - @Support({ POSTGRES }) + @Support({ POSTGRES, SQLITE }) @PlainSQL CreateIndexFinalStep where(String sql); @@ -139,7 +140,7 @@ public interface CreateIndexWhereStep extends CreateIndexFinalStep { * @see DSL#sql(String, Object...) * @see SQL */ - @Support({ POSTGRES }) + @Support({ POSTGRES, SQLITE }) @PlainSQL CreateIndexFinalStep where(String sql, Object... bindings); @@ -155,7 +156,7 @@ public interface CreateIndexWhereStep extends CreateIndexFinalStep { * @see DSL#sql(String, QueryPart...) * @see SQL */ - @Support({ POSTGRES }) + @Support({ POSTGRES, SQLITE }) @PlainSQL CreateIndexFinalStep where(String sql, QueryPart... parts); }