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
thrownewMySqlException("Parameter index {0} is invalid when only {1} parameter{2} defined.".FormatInvariant(parameterIndex,parameterCollection.Count,parameterCollection.Count==1?" is":"s are"));
thrownewMySqlException("Parameter index {0} is invalid when only {1} parameter{2} defined.".FormatInvariant(parameterIndex,parameterCollection?.Count??0,parameterCollection?.Count==1?" is":"s are"));
thrownewMySqlException("Parameter '{0}' must be defined. To use this as a variable, set 'Allow User Variables=true' in the connection string.".FormatInvariant(name));
51
51
returnindex;
52
52
}
53
53
54
54
privateMySqlParameterGetInputParameter(intindex)
55
55
{
56
-
if(index>=m_parameters.Count)
57
-
thrownewMySqlException("Parameter index {0} is invalid when only {1} parameter{2} defined.".FormatInvariant(index,m_parameters.Count,m_parameters.Count==1?" is":"s are"));
56
+
if(index>=(m_parameters?.Count??0))
57
+
thrownewMySqlException("Parameter index {0} is invalid when only {1} parameter{2} defined.".FormatInvariant(index,m_parameters?.Count??0,m_parameters?.Count==1?" is":"s are"));
thrownewMySqlException("Only ParameterDirection.Input is supported when CommandType is Text (parameter name: {0})".FormatInvariant(parameter.ParameterName));
0 commit comments