Commit cf41b43b authored by Sergey Vojtovich's avatar Sergey Vojtovich

An addition to fix for

BUG#41597 - After rename of user, there are additional grants
            when grants are reapplied.

Fixed build failure on Windows. Added missing cast.
parent dd02c4a1
...@@ -5206,8 +5206,8 @@ static int handle_grant_struct(uint struct_no, bool drop, ...@@ -5206,8 +5206,8 @@ static int handle_grant_struct(uint struct_no, bool drop,
is renamed, the hash key is changed. Update the hash to is renamed, the hash key is changed. Update the hash to
ensure that the position matches the new hash key value ensure that the position matches the new hash key value
*/ */
hash_update(&column_priv_hash, (byte *)grant_name, hash_update(&column_priv_hash, (byte*) grant_name,
grant_name->hash_key, grant_name->key_length); (byte *) grant_name->hash_key, grant_name->key_length);
break; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment