mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
修复批量插入/更新大量数据时,未使用NoneParameter,会导致部分未执行的bug;
This commit is contained in:
@ -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>();
|
||||
|
@ -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>();
|
||||
|
Reference in New Issue
Block a user