From f38b1ce70910e8ed0286c3e8da1a3d842ece8a7d Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Sun, 27 Mar 2022 22:45:33 +0300 Subject: [PATCH] Remove batch limit on number of parameters The PG parameter limit is per statement, not per batch. --- .../Update/Internal/NpgsqlModificationCommandBatch.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/EFCore.PG/Update/Internal/NpgsqlModificationCommandBatch.cs b/src/EFCore.PG/Update/Internal/NpgsqlModificationCommandBatch.cs index 8c6e78cc..def4fc52 100644 --- a/src/EFCore.PG/Update/Internal/NpgsqlModificationCommandBatch.cs +++ b/src/EFCore.PG/Update/Internal/NpgsqlModificationCommandBatch.cs @@ -31,10 +31,6 @@ public class NpgsqlModificationCommandBatch : ReaderModificationCommandBatch /// protected override int MaxBatchSize { get; } - /// - protected override bool IsValid() - => ParameterValues.Count <= ushort.MaxValue; - protected override void Consume(RelationalDataReader reader) { var npgsqlReader = (NpgsqlDataReader)reader.DbDataReader; -- GitLab