[#8415] Emulate WITH TIES in H2

This commit is contained in:
lukaseder 2019-03-14 10:35:36 +01:00
parent 16df2e309d
commit 6a56edf319
4 changed files with 6 additions and 3 deletions

View File

@ -873,7 +873,7 @@ public interface SelectQuery<R extends Record> extends Select<R>, ConditionProvi
/**
* Add the <code>WITH TIES</code> clause to a <code>LIMIT</code> clause.
*/
@Support({ CUBRID, FIREBIRD_3_0, MARIADB, MYSQL_8_0, POSTGRES })
@Support({ CUBRID, FIREBIRD_3_0, H2, MARIADB, MYSQL_8_0, POSTGRES })
void setWithTies(boolean withTies);
/**

View File

@ -41,6 +41,7 @@ package org.jooq;
import static org.jooq.SQLDialect.CUBRID;
// ...
import static org.jooq.SQLDialect.FIREBIRD_3_0;
import static org.jooq.SQLDialect.H2;
// ...
// ...
// ...
@ -117,6 +118,6 @@ public interface SelectWithTiesAfterOffsetStep<R extends Record> extends SelectF
/**
* Add the <code>WITH TIES</code> clause to a <code>LIMIT</code> clause.
*/
@Support({ CUBRID, FIREBIRD_3_0, POSTGRES })
@Support({ CUBRID, FIREBIRD_3_0, H2, POSTGRES })
SelectForUpdateStep<R> withTies();
}

View File

@ -41,6 +41,7 @@ package org.jooq;
import static org.jooq.SQLDialect.CUBRID;
// ...
import static org.jooq.SQLDialect.FIREBIRD_3_0;
import static org.jooq.SQLDialect.H2;
// ...
// ...
import static org.jooq.SQLDialect.MARIADB;
@ -119,6 +120,6 @@ public interface SelectWithTiesStep<R extends Record> extends SelectOffsetStep<R
/**
* Add the <code>WITH TIES</code> clause to a <code>LIMIT</code> clause.
*/
@Support({ CUBRID, FIREBIRD_3_0, MARIADB, MYSQL_8_0, POSTGRES })
@Support({ CUBRID, FIREBIRD_3_0, H2, MARIADB, MYSQL_8_0, POSTGRES })
SelectOffsetStep<R> withTies();
}

View File

@ -672,6 +672,7 @@ final class SelectQueryImpl<R extends Record> extends AbstractResultQuery<R> imp
case CUBRID:
case FIREBIRD_3_0:
case H2:
case MARIADB:
case MYSQL:
case MYSQL_8_0: