• igor@olga.mysql.com's avatar
    Fixed bug #28980: the result of ROUND(<decimal expr>,<int column>) · 20ad5150
    igor@olga.mysql.com authored
    was erroneously converted to double, while the result of
    ROUND(<decimal expr>, <int literal>) was preserved as decimal.
    As a result of such a conversion the value of ROUND(D,A) could
    differ from the value of ROUND(D,val(A)) if D was a decimal expression.
    
    Now the result of the ROUND function is never converted to 
    double if the first argument is decimal.  
    20ad5150
item_func.cc 137 KB