• unknown's avatar
    In 5.0, Field_double::val_str uses "%g" to render floating point · 6f6655cf
    unknown authored
    numbers, which uses "X.YeZ" notation when the exponent Z would be
    less than -4. That behavior at -4 is not exactly what we want, and
    our Decimal type offers smarter number representation.  By changing
    profiling to use Decimal types, we get more readable output.
    
    
    sql/sql_profile.cc:
      Change the DOUBLE I_S types to DECIMAL, so we get a smarter
      floating-point number renderer.
    sql/sql_show.cc:
      Add MYSQL_TYPE_DECIMAL as a string-ish type that INFORMATION_SCHEMA
      tables may use.
    6f6655cf
sql_profile.cc 20.4 KB