feat(transactions): add manual transactions to more execution paths

This commit is contained in:
efeire authored and GitHub committed 2026-09-20 11:07:11 +08:00
1 parent 88ba58a79c
commit a924285136
38 files changed
+2471 -146

No files matched your search

+5
View File
@@ -1417,6 +1417,11 @@ export const useQueryStore = defineStore("query", () => {
txnSessionId: undefined,
txnAutoRolledBack: undefined,
});
// Workers must not inherit result navigation or write targets from the
// source editor, including when a dedicated transaction supplies results.
clearResultPayload(worker);
clearResultNavigationState(worker);
worker.resultBaseSql = undefined;
multiDbExecutionWorkers.set(id, worker);
const workers = multiDbExecutionWorkerScopes.get(scopeId) ?? new Set<string>();
workers.add(id);