[jOOQ/jOOQ#16769] Work around BigQuery ORDER BY clause limitation where

identifiers cannot be resolved if the table and the column share the
same name
This commit is contained in:
Lukas Eder 2024-06-05 15:33:01 +02:00
parent 9054fc4b4a
commit 21ea53dac2

View File

@ -374,6 +374,8 @@ final class SelectQueryImpl<R extends Record> extends AbstractResultQuery<R> imp
static final Set<SQLDialect> SUPPORT_FULL_WITH_TIES = SQLDialect.supportedBy(CLICKHOUSE, H2, MARIADB, POSTGRES, TRINO);
static final Set<SQLDialect> EMULATE_DISTINCT_ON = SQLDialect.supportedBy(DERBY, FIREBIRD, HSQLDB, MARIADB, MYSQL, SQLITE, TRINO);
static final Set<SQLDialect> NO_SUPPORT_FOR_UPDATE_OF_FIELDS = SQLDialect.supportedBy(MYSQL, POSTGRES, YUGABYTEDB);
@ -3409,6 +3411,7 @@ final class SelectQueryImpl<R extends Record> extends AbstractResultQuery<R> imp
@SuppressWarnings("unchecked")
private final void toSQLOrderBy(
final Context<?> ctx,
final List<Field<?>> originalFields,
@ -3501,6 +3504,30 @@ final class SelectQueryImpl<R extends Record> extends AbstractResultQuery<R> imp
});
}
ctx.visit(actualOrderBy);
}
}