MCPcopy Create free account
hub / github.com/MariaDB/server / warn_hostname_requires_resolving

Method warn_hostname_requires_resolving

sql/sql_acl.cc:12558–12570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12556
12557
12558void Sql_cmd_grant::warn_hostname_requires_resolving(THD *thd,
12559 List<LEX_USER> &users)
12560{
12561 LEX_USER *user;
12562 List_iterator <LEX_USER> it(users);
12563 while ((user= it++))
12564 {
12565 if (opt_skip_name_resolve && hostname_requires_resolving(user->host.str))
12566 push_warning(thd, Sql_condition::WARN_LEVEL_WARN,
12567 ER_WARN_HOSTNAME_WONT_WORK,
12568 ER_THD(thd, ER_WARN_HOSTNAME_WONT_WORK));
12569 }
12570}
12571
12572
12573void Sql_cmd_grant::grant_stage0(THD *thd)

Callers

nothing calls this directly

Calls 2

push_warningFunction · 0.85

Tested by

no test coverage detected