• unknown's avatar
    Bug #17043: Casting trimmed string to decimal loses precision · d48cfa8a
    unknown authored
      Results of string functions were being converted to decimals by first
      being converted to integers, resulting in a loss of precision.
    
    
    mysql-test/r/func_str.result:
      Add new results
    mysql-test/t/func_str.test:
      Add new regression test
    sql/item_strfunc.cc:
      Convert string function results to decimal using string-to-decimal conversion
    sql/item_strfunc.h:
      Add Item_str_func::val_decimal()
    d48cfa8a
item_strfunc.h 21.6 KB