[jOOQ/jOOQ#15472] Code generation fails on BigQuery when querying INFORMATION_SCHEMA without a DefaultDataset being specified
This commit is contained in:
parent
0ddc30aab8
commit
82f2ab9872
@ -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+
|
||||
|
||||
Loading…
Reference in New Issue
Block a user