fix(editor): verify current-schema tables in semantic diagnosis

This commit is contained in:
zipg authored and GitHub committed 2026-09-09 16:05:43 +08:00
1 parent 3b46109d36
commit fd44331876
5 files changed
+53 -8

No files matched your search

@@ -364,8 +364,8 @@ describe("query execution schema", () => {
expect(connectionQueryExecutionSchema({ db_type: dbType }, "ai_test", undefined, false)).toBe("ai_test");
});
it("prefers an explicit schema for PostgreSQL", () => {
expect(connectionQueryExecutionSchema({ db_type: "postgres" }, "app", "reporting", false)).toBe("reporting");
it.each(["postgres", "gaussdb", "opengauss"] as const)("prefers an explicit schema for %s", (dbType) => {
expect(connectionQueryExecutionSchema({ db_type: dbType }, "app", "reporting", false)).toBe("reporting");
});
it("prefers an explicit schema for Kingbase query execution", () => {