• Vicențiu Ciorbaru's avatar
    MDEV-11533: Roles with trailing white spaces are not cleared correctly · eb4f2e06
    Vicențiu Ciorbaru authored
    Role names with trailing whitespaces are truncated in length as of
    956e92d9 to fix MDEV-8609. The problem
    is that the code that creates role mappings expects the string to be null
    terminated.
    
    Add the null terminator to account for that as well. In the future
    the rest of the code can be cleaned up to never assume c style strings
    but only LEX_STRINGS.
    eb4f2e06
create_and_drop_role.test 2.5 KB