fix(editor): save object source tabs contextually

This commit is contained in:
t8y2
2026-05-15 13:28:41 +08:00
parent 72dd4d728b
commit f91ccf89c4
14 changed files with 136 additions and 3 deletions
+13
View File
@@ -30,6 +30,19 @@ test("SQL Server object source saves as a single batch", () => {
assert.equal(objectSourceSaveExecutionMode("sqlserver"), "single");
});
test("Kingbase object source saves as a single statement", () => {
assert.equal(objectSourceSaveExecutionMode("kingbase"), "single");
});
test("Postgres-family object source saves as a single statement", () => {
assert.equal(objectSourceSaveExecutionMode("postgres"), "single");
assert.equal(objectSourceSaveExecutionMode("gaussdb"), "single");
});
test("MySQL object source saves as a single statement", () => {
assert.equal(objectSourceSaveExecutionMode("mysql"), "single");
});
test("Postgres view body opens as CREATE OR REPLACE VIEW", () => {
const sql = buildExecutableObjectSourceSql({
databaseType: "postgres",