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
* NOTE: `System.IO.Stream` and derived types (other than `MemoryStream`) are supported only when `MySqlCommand.Prepare` is called first. The data in the `Stream` will be streamed to the database server as binary data.
/// <param name="cancellationToken">A cancellation token to cancel the asynchronous operation.</param>
17
+
/// <returns>A <see cref="ValueTask"/> representing the asynchronous operation or a completed <see cref="ValueTask"/> if no data needed to be sent.</returns>
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