• Weijun Huang's avatar
    MDEV-29646: sformat('Num [{:20}]', 42) gives incorrect result in view · f288d42c
    Weijun Huang authored
    The problem is that sformat does not assign the enough space for the
    result string. The result string is allocated with the max_length of
    argument, but the correst max_length should be based on the format
    string.
    
    The patch fixes the problem by using MAX_BLOB_WIDTH to assign length
    f288d42c
item_strfunc.cc 154 KB