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

Merge mysql.com:/extern/mysql/5.0/generic/mysql-5.0

into  mysql.com:/extern/mysql/5.1/generic/mysql-5.1-new
This commit is contained in:
pem@mysql.com
2006-03-06 19:46:17 +01:00
30 changed files with 595 additions and 124 deletions

View File

@@ -2387,7 +2387,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