1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

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.
This commit is contained in:
Sergey Vojtovich
2009-10-27 12:37:57 +04:00
parent dd02c4a12b
commit cf41b43b8e

View File

@ -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
ensure that the position matches the new hash key value
*/
hash_update(&column_priv_hash, (byte *)grant_name,
grant_name->hash_key, grant_name->key_length);
hash_update(&column_priv_hash, (byte*) grant_name,
(byte *) grant_name->hash_key, grant_name->key_length);
break;
}
}