• Satya B's avatar
    Fix for Bug #41597 - After rename of user, there are additional grants when · b2cd0a0f
    Satya B authored
                         grants are reapplied.
    
    
    After renaming a user and trying to re-apply grants results in additional
    grants.
    
    This is because we use username as part of the key for GRANT_TABLE structure.
    When the user is renamed, we only change the username stored and the hash key
    still contains the old user name and this results in the extra privileges
    
    Fixed by rebuilding the hash key and updating the column_priv_hash structure
    when the user is renamed
    b2cd0a0f
sql_acl.cc 184 KB