in

Double and Decimal fields in MySQL

Last post 02-22-2008 12:03 PM by ricvil. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 02-22-2008 12:03 PM

    • ricvil
    • Top 500 Contributor
    • Joined on 02-06-2008
    • Posts 4

    Double and Decimal fields in MySQL

    Hola

    I'm having problems with double fields in MySQL. 

    I see this code in MySqlDataProvider:

            public override DbType GetDbType(string mySqlType)
    {
    switch (mySqlType.ToLower())
    {
    		...
                    case "decimal":
    case "float":
    case "newdecimal":
    case "numeric":
    case "double":
    case "real":
    return DbType.Decimal;
      ...
    		 

    I think that float, numeric, double and real must return DbType.Double; 

    I'm not sure with other types, but with double I haven't problems if I change it: 

     

    Saludos. 

    Ricardo Garcia.

     

     
Page 1 of 1 (1 items)