[jOOQ/jOOQ#18858] Meta.getSequences() only lists

sequences of current catalog in SQL Server
This commit is contained in:
Lukas Eder 2025-08-13 11:35:53 +02:00
parent 2ba661d42b
commit 491fce8cf4

View File

@ -945,12 +945,12 @@ final class MetaImpl extends AbstractMeta {
: M_SEQUENCES(dialect());
if (sql != null) {
Result<Record> result = meta(
() -> "Error while fetching sequences for schema: " + this,
meta -> ctx(meta).resultQuery(sql, MetaSchema.this.getName()).fetch()
Result<Record> result = meta(() -> "Error while fetching sequences for schema: " + this, meta ->
withCatalog(getCatalog(), ctx(meta), ctx ->
ctx.resultQuery(sql, MetaSchema.this.getName()).fetch()
)
);
// TODO Support catalogs as well
Map<Record, Result<Record>> groups = result.intoGroups(new Field[] { result.field(0), result.field(1) });
sequenceCache = new LinkedHashMap<>();