fix(kingbase): preserve query schema context
This commit is contained in:
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();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user