• igor@olga.mysql.com's avatar
    Fixed bug #27130. If the third argument of the function SUBSTR was · 63ab9109
    igor@olga.mysql.com authored
    represented by an expression of the type UNSIGNED INT and this 
    expression was evaluated to 0 then the function erroneously returned
    the value of the first argument instead of an empty string. 
    
    This problem was introduced by the patch for bug 10963.
    
    The problem has been resolved by a proper modification of the code of
    Item_func_substr::val_str.
    63ab9109
func_str.result 79.4 KB