Commit eeee9117 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.

sql/sql_acl.cc:
  Fixed build failure on Windows. Added missing cast.
parent 19ffe230
......@@ -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;
}
}
......
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