[jOOQ/jOOQ#10974] Support ARRAY_AGG in H2

This commit is contained in:
Lukas Eder 2020-11-18 16:29:55 +01:00
parent e217e63a2a
commit f5d0733b1b
2 changed files with 5 additions and 4 deletions

View File

@ -42,6 +42,7 @@ import org.jetbrains.annotations.*;
// ...
// ...
import static org.jooq.SQLDialect.H2;
import static org.jooq.SQLDialect.HSQLDB;
// ...
import static org.jooq.SQLDialect.POSTGRES;
@ -62,13 +63,13 @@ public interface ArrayAggOrderByStep<T> extends AggregateFilterStep<T> {
* Add an <code>ORDER BY</code> clause to the function.
*/
@NotNull
@Support({ HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, POSTGRES })
AggregateFilterStep<T> orderBy(OrderField<?>... fields);
/**
* Add an <code>ORDER BY</code> clause to the function.
*/
@NotNull
@Support({ HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, POSTGRES })
AggregateFilterStep<T> orderBy(Collection<? extends OrderField<?>> fields);
}

View File

@ -21098,7 +21098,7 @@ public class DSL {
* Get the <code>array_agg()</code> aggregate function.
*/
@NotNull
@Support({ HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, POSTGRES })
public static <T> ArrayAggOrderByStep<T[]> arrayAgg(Field<T> field) {
return new ArrayAgg(false, nullSafe(field));
}
@ -21107,7 +21107,7 @@ public class DSL {
* Get the <code>array_agg()</code> aggregate function.
*/
@NotNull
@Support({ HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, POSTGRES })
public static <T> ArrayAggOrderByStep<T[]> arrayAggDistinct(Field<T> field) {
return new ArrayAgg(true, nullSafe(field));
}