[jOOQ/jOOQ#15472] Code generation fails on BigQuery when querying INFORMATION_SCHEMA without a DefaultDataset being specified

This commit is contained in:
Lukas Eder 2023-08-22 16:10:00 +02:00
parent 0ddc30aab8
commit 82f2ab9872

View File

@ -47,6 +47,7 @@ import static java.util.Collections.emptyList;
// ...
// ...
// ...
// ...
import static org.jooq.SQLDialect.DERBY;
// ...
import static org.jooq.SQLDialect.FIREBIRD;
@ -692,7 +693,7 @@ final class MetaImpl extends AbstractMeta {
if (sql != null) {
Result<Record> result = meta(meta ->
withCatalog(getCatalog(), DSL.using(meta.getConnection(), family()), ctx ->
ctx.resultQuery(sql, MetaSchema.this.getName()).fetch()
ctx.resultQuery(patchSchema(sql), MetaSchema.this.getName()).fetch()
)
);
@ -716,6 +717,15 @@ final class MetaImpl extends AbstractMeta {
else
return null;
}
private final String patchSchema(String sql) {
return sql;
}
}
// Columns available from JDBC 3.0+