• evgen@moonbone.local's avatar
    Bug#15757: Wrong SUBSTRING() result when a tmp table was employed. · 6f6b9ae3
    evgen@moonbone.local authored
    When the SUBSTRING() function was used over a LONGTEXT field the max_length of
    the SUBSTRING() result was wrongly calculated and set to 0. As the max_length
    parameter is used while tmp field creation it limits the length of the result
    field and leads to printing an empty string instead of the correct result.
    
    Now the Item_func_substr::fix_length_and_dec() function correctly calculates
    the max_length parameter.
    6f6b9ae3
func_str.result 77.2 KB