fix(sqlserver): avoid legacy schema switch during writes

This commit is contained in:
zipg authored and GitHub committed 2026-09-08 19:30:44 +08:00
1 parent f445d008de
commit 1268dcdf52
2 files changed
+41 -4

No files matched your search

+1 -1
View File
@@ -8887,7 +8887,7 @@ where
.get(&table)
.map(|foreign_keys| HashMap::from([(table.clone(), foreign_keys.clone())]))
.unwrap_or_default();
let preexisting_backup_names = preexisting_backup_names.map(|m| m.clone());
let preexisting_backup_names = preexisting_backup_names.cloned();
// Kept outside the spawned task: `request` moves into it, and the error path below
// still needs the backup's qualified name to point the user at their data.
let backup_for_this_table = request