fix(query): fall back to autocommit for legacy oracle agents

This commit is contained in:
zipg authored and GitHub committed 2026-09-02 11:20:20 +08:00
1 parent 10ac216964
commit 716d2eafd2
3 files changed
+124 -56

No files matched your search

@@ -92,6 +92,13 @@ export function isManualTransactionSessionExpired(error: unknown): boolean {
return message?.startsWith("Transaction session not found or expired;") === true || message === "Transaction was auto-rolled back due to 5 minutes of inactivity";
}
export function isUnsupportedManualTransactionMethod(error: unknown): boolean {
const message = error instanceof Error ? error.message : typeof error === "string" ? error : undefined;
if (!message) return false;
const normalized = message.toLowerCase();
return normalized.includes("begin_manual_transaction") && (normalized.includes("unknown method") || normalized.includes("method not found"));
}
function normalizeBackendErrorAtDepth(error: unknown, seen: WeakSet<object>, depth: number): BackendError | null {
if (depth > MAX_ERROR_PARSE_DEPTH) return null;