提交 c176891f 编写于 作者: T terrymanu

refactor BatchPreparedStatementExecutor

上级 362be03f
......@@ -73,10 +73,11 @@ public final class BatchPreparedStatementExecutor {
int count = 0;
for (BatchPreparedStatementUnit each : batchPreparedStatementUnits) {
for (Map.Entry<Integer, Integer> entry : each.getJdbcAndActualAddBatchCallTimesMap().entrySet()) {
int value = null == results.get(count) ? 0 : results.get(count)[entry.getValue()];
if (DatabaseType.Oracle == dbType) {
result[entry.getKey()] = results.get(count)[entry.getValue()];
result[entry.getKey()] = value;
} else {
result[entry.getKey()] += null == results.get(count) ? 0 : results.get(count)[entry.getValue()];
result[entry.getKey()] += value;
}
}
count++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册