mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
--skip-name-resolve=0 didn't work
custom code in `case OPT_SKIP_RESOLVE` was overriding the correct value from handle_options().
This commit is contained in:
@ -5248,7 +5248,7 @@ mysql_execute_command(THD *thd)
|
||||
List_iterator <LEX_USER> user_list(lex->users_list);
|
||||
while ((user= user_list++))
|
||||
{
|
||||
if (specialflag & SPECIAL_NO_RESOLVE &&
|
||||
if (opt_skip_name_resolve &&
|
||||
hostname_requires_resolving(user->host.str))
|
||||
push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN,
|
||||
ER_WARN_HOSTNAME_WONT_WORK,
|
||||
|
Reference in New Issue
Block a user