refactor: 优化 batchUpdate 代码

Signed-off-by: ZhouXY108 <luquanlion@outlook.com>
This commit is contained in:
2026-05-26 20:34:40 +00:00
committed by Gitee
parent 08e23f984f
commit 4c995b7d21

View File

@@ -255,13 +255,15 @@ class JdbcOperationSupport {
result.recordErrorBatch(batchIndex, updateCounts, e);
if (!quietly) {
result.interrupt();
return result;
break;
}
}
finally {
stmt.clearBatch();
batchIndex++;
}
}
}
return result;
}
}