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,11 +255,13 @@ class JdbcOperationSupport {
result.recordErrorBatch(batchIndex, updateCounts, e); result.recordErrorBatch(batchIndex, updateCounts, e);
if (!quietly) { if (!quietly) {
result.interrupt(); result.interrupt();
return result; break;
} }
} }
stmt.clearBatch(); finally {
batchIndex++; stmt.clearBatch();
batchIndex++;
}
} }
} }
return result; return result;