fix(kingbase): preserve query schema context

This commit is contained in:
zipg authored and GitHub committed 2026-07-29 18:43:53 +08:00
1 parent 51ab6fb9ec
commit 02aea73d28
6 files changed
+306 -49

No files matched your search

@@ -85,6 +85,10 @@ describe("query execution schema", () => {
expect(connectionQueryExecutionSchema({ db_type: "postgres" }, "app", "reporting", false)).toBe("reporting");
});
it("prefers an explicit schema for Kingbase query execution", () => {
expect(connectionQueryExecutionSchema({ db_type: "kingbase" }, "qinzhou", "sdy_smartsite", false)).toBe("sdy_smartsite");
});
it("does not send a schema for MySQL database context", () => {
expect(connectionQueryExecutionSchema({ db_type: "mysql" }, "app", undefined, false)).toBeUndefined();
});