1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

4.1 -> 5.0 merge

This commit is contained in:
gluh@mysql.com
2006-03-06 14:38:31 +04:00
3 changed files with 39 additions and 1 deletions

View File

@@ -2258,7 +2258,10 @@ static GRANT_NAME *name_hash_search(HASH *name_hash,
{
if (exact)
{
if (compare_hostname(&grant_name->host, host, ip))
if ((host &&
!my_strcasecmp(system_charset_info, host,
grant_name->host.hostname)) ||
(ip && !strcmp(ip, grant_name->host.hostname)))
return grant_name;
}
else