fix(schema): handle view DDL object types

This commit is contained in:
t8y2 committed 2026-06-17 19:29:24 +08:00
1 parent 7643148708
commit 22b8ba17bb
14 files changed
+175 -48

No files matched your search

+1 -1
View File
@@ -466,7 +466,7 @@ export const useConnectionStore = defineStore("connection", () => {
// When searching, fetch all matching tables (no pagination) — backend filter
// already narrows the result set, so client-side filtering is not needed.
const fetchLimit = searchFilter ? undefined : options.pageSize + 1;
const tables = await api.listTables(options.node.connectionId, options.node.database, options.querySchema, searchFilter, fetchLimit, searchFilter ? undefined : options.offset);
const tables = await api.listTables(options.node.connectionId, options.node.database, options.querySchema, searchFilter, fetchLimit, searchFilter ? undefined : options.offset, options.objectTypes);
const hasMore = searchFilter ? false : tables.length > options.pageSize;
const pageTables = hasMore ? tables.slice(0, options.pageSize) : tables;
const objects = mergeTableInfosIntoObjects([], pageTables, options.effectiveSchema);