• Rucha Deodhar's avatar
    MDEV-23082: ER_TABLEACCESS_DENIED_ERROR error message is truncated, · 5fb07d22
    Rucha Deodhar authored
    and inaccurately
    
    Analysis: The list of all privileges is 118 characters wide. However, the
    format of error message was: "%-.32s command denied to user...". get_length()
    sets the maximum width to 32 characters. As a result, only first 32
    characters of list of privilege are stored.
    Fix: Changing the format to "%-.100T..." so that get_length() sets width to
    100. Hence, first 100 characters of the list of privilege are stored and the
    type specifier 'T' appends '...' so that truncation can be seen.
    5fb07d22
errmsg-utf8.txt 527 KB