forked from plusone/simple-jdbc
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);
|
||||
if (!quietly) {
|
||||
result.interrupt();
|
||||
return result;
|
||||
break;
|
||||
}
|
||||
}
|
||||
stmt.clearBatch();
|
||||
batchIndex++;
|
||||
finally {
|
||||
stmt.clearBatch();
|
||||
batchIndex++;
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user