fix(grid): 单条数据修改不再强制开启事务
Co-authored-by: zipg <4047349+zipg@users.noreply.github.com>
This commit is contained in:
1 parent
fab1fa9195
commit
79c682679d
2 files changed
+86
-3
No files matched your search
@@ -1270,7 +1270,7 @@ export function useDataGridEditor(options: UseDataGridEditorOptions) {
|
||||
rollbackStatements: rollbackStmts,
|
||||
});
|
||||
|
||||
if (useTransaction.value && hasBackendSaveTarget.value) {
|
||||
if (useTransaction.value && stmts.length > 1 && hasBackendSaveTarget.value) {
|
||||
try {
|
||||
apiResult = await api.executeInTransaction(connectionId.value!, database.value ?? "", stmts, preparedSave?.executionSchema);
|
||||
} catch (e: any) {
|
||||
|
||||
Reference in new issue
Block a user