fix(editor): route grid edits through manual txn session

This commit is contained in:
zipg authored and GitHub committed 2026-09-03 10:27:41 +08:00
1 parent 321674c4dc
commit e2eb481b8a
6 files changed
+95 -4

No files matched your search

+8
View File
@@ -3429,6 +3429,13 @@ export const useQueryStore = defineStore("query", () => {
}
}
function markManualTransactionDirty(id: string) {
const tab = tabs.value.find((item) => item.id === id);
if (!tab?.txnSessionId) return;
const dbType = effectiveDatabaseTypeForConnection(useConnectionStore().getConfig(tab.connectionId));
if (dbType === "oracle") tab.oracleTxnPossiblyDirty = true;
}
/** Reset only the Oracle sticky-dirty bit. Used when a session continues but
* the old dirty state must be discarded (e.g. idle-expiry recovery where the
* replacement session starts fresh). Full session cleanup goes through
@@ -7101,6 +7108,7 @@ export const useQueryStore = defineStore("query", () => {
updateObjectBrowserViewport,
updateNacosConfigEditorViewport,
setAutoCommit,
markManualTransactionDirty,
commitTransaction,
rollbackTransaction,
renameTab,