[jOOQ/jOOQ#9183] Add support for DISTINCT ON in H2
This commit is contained in:
parent
3448ff4925
commit
99523abbfe
@ -38,6 +38,7 @@
|
||||
package org.jooq;
|
||||
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.H2;
|
||||
import static org.jooq.SQLDialect.POSTGRES;
|
||||
|
||||
import java.util.Collection;
|
||||
@ -111,7 +112,7 @@ public interface SelectDistinctOnStep<R extends Record> extends SelectIntoStep<R
|
||||
* This implicitly enforces the <code>DISTINCT</code> clause, no matter if
|
||||
* it is added explicitly via the jOOQ API.
|
||||
*/
|
||||
@Support({ POSTGRES })
|
||||
@Support({ H2, POSTGRES })
|
||||
SelectIntoStep<R> on(SelectFieldOrAsterisk... fields);
|
||||
|
||||
/**
|
||||
@ -121,20 +122,20 @@ public interface SelectDistinctOnStep<R extends Record> extends SelectIntoStep<R
|
||||
* This implicitly enforces the <code>DISTINCT</code> clause, no matter if
|
||||
* it is added explicitly via the jOOQ API.
|
||||
*/
|
||||
@Support({ POSTGRES })
|
||||
@Support({ H2, POSTGRES })
|
||||
SelectIntoStep<R> on(Collection<? extends SelectFieldOrAsterisk> fields);
|
||||
|
||||
/**
|
||||
* Add the PostgreSQL-specific <code>ON(...)</code> clause to a
|
||||
* <code>SELECT DISTINCT ON (...)</code> statement.
|
||||
*/
|
||||
@Support({ POSTGRES })
|
||||
@Support({ H2, POSTGRES })
|
||||
SelectIntoStep<R> distinctOn(SelectFieldOrAsterisk... fields);
|
||||
|
||||
/**
|
||||
* Add the PostgreSQL-specific <code>ON(...)</code> clause to a
|
||||
* <code>SELECT DISTINCT ON (...)</code> statement.
|
||||
*/
|
||||
@Support({ POSTGRES })
|
||||
@Support({ H2, POSTGRES })
|
||||
SelectIntoStep<R> distinctOn(Collection<? extends SelectFieldOrAsterisk> fields);
|
||||
}
|
||||
|
||||
@ -115,7 +115,7 @@ public interface SelectQuery<R extends Record> extends Select<R>, ConditionProvi
|
||||
* <p>
|
||||
* This also sets the <code>distinct</code> flag to <code>true</code>
|
||||
*/
|
||||
@Support({ POSTGRES })
|
||||
@Support({ H2, POSTGRES })
|
||||
void addDistinctOn(SelectFieldOrAsterisk... fields);
|
||||
|
||||
/**
|
||||
@ -123,7 +123,7 @@ public interface SelectQuery<R extends Record> extends Select<R>, ConditionProvi
|
||||
* <p>
|
||||
* This also sets the <code>distinct</code> flag to <code>true</code>
|
||||
*/
|
||||
@Support({ POSTGRES })
|
||||
@Support({ H2, POSTGRES })
|
||||
void addDistinctOn(Collection<? extends SelectFieldOrAsterisk> fields);
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user