From dc0cbb09c8bd2ab1c039289100c267ab9ee3d71e Mon Sep 17 00:00:00 2001 From: lukaseder Date: Tue, 2 Dec 2014 18:47:22 +0100 Subject: [PATCH] [#1391] Add support for the Postgres "every" aggregate function --- jOOQ/src/main/java/org/jooq/impl/DSL.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/jOOQ/src/main/java/org/jooq/impl/DSL.java b/jOOQ/src/main/java/org/jooq/impl/DSL.java index 363c5ad628..bb2f80c10a 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DSL.java +++ b/jOOQ/src/main/java/org/jooq/impl/DSL.java @@ -9800,6 +9800,22 @@ public class DSL { return new Function("count", true, SQLDataType.INTEGER, nullSafe(fields)); } + /** + * Get the every value over a field: every(field). + */ + @Support(POSTGRES) + public static AggregateFunction every(Field field) { + return new Function("every", SQLDataType.BOOLEAN, nullSafe(field)); + } + + /** + * Get the every value over a condition: every(condition). + */ + @Support(POSTGRES) + public static AggregateFunction every(Condition condition) { + return every(field(condition)); + } + /** * Get the max value over a field: max(field). */