Skip to content

Commit c23e715

Browse files
committed
Fix possible infinite loop on command processing
1 parent c16744c commit c23e715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orm/Xtensive.Orm/Orm/Providers/CommandProcessing/CommandProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ protected ExecutionBehavior GetCommandExecutionBehavior(ICollection<CommandPart>
131131
}
132132
sum += count;
133133
}
134-
if (sum + currentParametersCount < MaxQueryParameterCount) {
134+
if (sum + currentParametersCount <= MaxQueryParameterCount) {
135135
return ExecutionBehavior.AsOneCommand;
136136
}
137137
return sum < MaxQueryParameterCount

0 commit comments

Comments
 (0)