Description:
MySqlParameter constructor "public MySqlParameter(string parameterName, MySqlDbType dbType, int size, ParameterDirection direction, bool isNullable, byte precision, byte scale, string sourceColumn, DataRowVersion sourceVersion, object value)" does not set value for IsNullable, Precision and Scale properties.
How to repeat:
using System;
using System.Data;
using MySql.Data.MySqlClient;
internal static class Test{
private static void Main(){
try{
MySqlParameter p=new MySqlParameter("Name",MySqlDbType.Decimal,0,ParameterDirection.Input,true,10,20,"Name",DataRowVersion.Default,0);
Console.WriteLine("{0}|{1}|{2}",p.IsNullable,p.Precision,p.Scale);
}catch(Exception e){
Console.WriteLine(e);
}
Console.ReadKey(true);
}
}
Description: MySqlParameter constructor "public MySqlParameter(string parameterName, MySqlDbType dbType, int size, ParameterDirection direction, bool isNullable, byte precision, byte scale, string sourceColumn, DataRowVersion sourceVersion, object value)" does not set value for IsNullable, Precision and Scale properties. How to repeat: using System; using System.Data; using MySql.Data.MySqlClient; internal static class Test{ private static void Main(){ try{ MySqlParameter p=new MySqlParameter("Name",MySqlDbType.Decimal,0,ParameterDirection.Input,true,10,20,"Name",DataRowVersion.Default,0); Console.WriteLine("{0}|{1}|{2}",p.IsNullable,p.Precision,p.Scale); }catch(Exception e){ Console.WriteLine(e); } Console.ReadKey(true); } }