You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varparameterIndex=parameterNameis not null?(command.RawParameters?.UnsafeIndexOf(parameterName)??-1):preparedStatement.Statement.ParameterIndexes[i];
34
-
if(command.RawParametersis{}rawParameters&¶meterIndex>=0&¶meterIndex<rawParameters.Count&&rawParameters[parameterIndex]is{Value:Streamstream and not MemoryStream})
32
+
// check each parameter
33
+
for(vari=0;i<parameters.Length;i++)
35
34
{
36
-
// send almost-full packets, but don't send exactly ProtocolUtility.MaxPacketSize bytes in one payload (as that's ambiguous to whether another packet follows).
37
-
constintmaxDataSize=16_000_000;
38
-
inttotalBytesRead;
39
-
while(true)
35
+
// look up this parameter in the command's parameter collection and check if it is a Stream
36
+
// NOTE: full parameter checks will be performed (and throw any necessary exceptions) in WritePreparedStatement
varparameterIndex=parameterNameis not null?(command.RawParameters?.UnsafeIndexOf(parameterName)??-1):preparedStatement.Statement.ParameterIndexes[i];
39
+
if(command.RawParametersis{}rawParameters&¶meterIndex>=0&¶meterIndex<rawParameters.Count&&rawParameters[parameterIndex]is{Value:Streamstream and not MemoryStream})
// send almost-full packets, but don't send exactly ProtocolUtility.MaxPacketSize bytes in one payload (as that's ambiguous to whether another packet follows).
0 commit comments