[jOOQ/jOOQ#10523] Move the dialect support to DerivedTable
This commit is contained in:
parent
6f0e558c3e
commit
1f61ab5d97
@ -38,15 +38,23 @@
|
||||
|
||||
package org.jooq.impl;
|
||||
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.H2;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.MARIADB;
|
||||
import static org.jooq.SQLDialect.MYSQL;
|
||||
// ...
|
||||
import static org.jooq.impl.Names.N_T;
|
||||
import static org.jooq.impl.Tools.visitSubquery;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import org.jooq.Clause;
|
||||
import org.jooq.Context;
|
||||
import org.jooq.Function1;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableOptions;
|
||||
@ -56,7 +64,8 @@ import org.jooq.TableOptions;
|
||||
*/
|
||||
class DerivedTable<R extends Record> extends AbstractTable<R> implements QOM.DerivedTable<R> {
|
||||
|
||||
private final Select<R> query;
|
||||
static final Set<SQLDialect> NO_SUPPORT_CORRELATED_DERIVED_TABLE = SQLDialect.supportedUntil(H2, MARIADB);
|
||||
private final Select<R> query;
|
||||
|
||||
DerivedTable(Select<R> query) {
|
||||
this(query, N_T);
|
||||
|
||||
@ -65,6 +65,7 @@ import static org.jooq.impl.DSL.select;
|
||||
import static org.jooq.impl.DSL.selectFrom;
|
||||
import static org.jooq.impl.DSL.val;
|
||||
import static org.jooq.impl.DefaultMetaProvider.meta;
|
||||
import static org.jooq.impl.DerivedTable.NO_SUPPORT_CORRELATED_DERIVED_TABLE;
|
||||
import static org.jooq.impl.Internal.createPathAlias;
|
||||
import static org.jooq.impl.Keywords.K_TABLE;
|
||||
import static org.jooq.impl.Names.N_MULTISET;
|
||||
@ -491,7 +492,6 @@ implements
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user