refactor: 优化 batchUpdate 代码
Signed-off-by: ZhouXY108 <luquanlion@outlook.com>
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user