[jOOQ/jOOQ#9251] Fix ORDER BY ... FETCH NEXT ... WITH TIES for H2

For queries with a `FETCH NEXT ... WITH TIES` clause the `ORDER BY`
clause isn't rendered in the OSS edition.
This commit is contained in:
Knut Wannheden 2019-09-20 08:54:55 +02:00
parent a755ec70a4
commit a890eeeb12

View File

@ -1591,8 +1591,8 @@ final class SelectQueryImpl<R extends Record> extends AbstractResultQuery<R> imp
// [#6197] When emulating WITH TIES using RANK() in a subquery, we must avoid rendering the
// subquery's ORDER BY clause
if (!getLimit().withTies()
// Dialects with native support
|| SUPPORT_FULL_WITH_TIES.contains(ctx.dialect())