/// <summary> /// Clones a parameter so that it can be used with another command. /// </summary> /// <param name="command">The command to use.</param> /// <param name="parameter">The parameter to clone.</param> /// <returns>The clone.</returns> public override IDataParameter CloneParameter(IDbCommand command, IDataParameter parameter) { MySqlParameter p = (MySqlParameter)parameter; #if MYSQL_8 return(new MySqlParameter( p.ParameterName, p.MySqlDbType, p.Size, p.Direction, p.IsNullable, p.Precision, p.Scale, p.SourceColumn, p.Value )); #else return((IDataParameter)p.Clone()); #endif }
/// <summary> /// Clones a parameter so that it can be used with another command. /// </summary> /// <param name="command">The command to use.</param> /// <param name="parameter">The parameter to clone.</param> /// <returns>The clone.</returns> public override IDataParameter CloneParameter(IDbCommand command, IDataParameter parameter) { MySqlParameter p = (MySqlParameter)parameter; return((IDataParameter)p.Clone()); }