修复批量插入/更新大量数据时,未使用NoneParameter,会导致部分未执行的bug;

This commit is contained in:
2881099
2019-06-07 18:23:51 +08:00
parent eb2d258f08
commit fe6d632624
11 changed files with 22 additions and 10 deletions

View File

@ -91,7 +91,7 @@ namespace FreeSql.Internal.CommonProvider {
var pamTotal = colSum * _source.Count;
if (pamTotal < parameterLimit) return new[] { _source };
var execCount = (int)Math.Ceiling(1.0 * pamTotal / parameterLimit);
var execCount = (int)Math.Ceiling(1.0 * pamTotal / takeMax / colSum);
var ret = new List<T1>[execCount];
for (var a = 0; a < execCount; a++) {
var subSource = new List<T1>();

View File

@ -96,7 +96,7 @@ namespace FreeSql.Internal.CommonProvider {
var pamTotal = colSum * _source.Count;
if (pamTotal < parameterLimit) return new[] { _source };
var execCount = (int)Math.Ceiling(1.0 * pamTotal / parameterLimit);
var execCount = (int)Math.Ceiling(1.0 * pamTotal / takeMax / colSum);
var ret = new List<T1>[execCount];
for (var a = 0; a < execCount; a++) {
var subSource = new List<T1>();