[#1391] Add support for the Postgres "every" aggregate function

This commit is contained in:
lukaseder 2014-12-02 18:47:22 +01:00
parent b0b04d753a
commit dc0cbb09c8

View File

@ -9800,6 +9800,22 @@ public class DSL {
return new Function<Integer>("count", true, SQLDataType.INTEGER, nullSafe(fields));
}
/**
* Get the every value over a field: every(field).
*/
@Support(POSTGRES)
public static AggregateFunction<Boolean> every(Field<Boolean> field) {
return new Function<Boolean>("every", SQLDataType.BOOLEAN, nullSafe(field));
}
/**
* Get the every value over a condition: every(condition).
*/
@Support(POSTGRES)
public static AggregateFunction<Boolean> every(Condition condition) {
return every(field(condition));
}
/**
* Get the max value over a field: max(field).
*/