From 1fea7e785f2de734fb3e278c9c0df2776f565c06 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sat, 23 Jan 2016 16:08:24 +0100 Subject: cleanup: create LEX_USER::reset_auth() as this is used quite often --- sql/sql_class.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sql/sql_class.cc') diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 729b23cf993..421ad627190 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -5160,9 +5160,7 @@ void THD::get_definer(LEX_USER *definer, bool role) { definer->user = invoker_user; definer->host= invoker_host; - definer->password= null_lex_str; - definer->plugin= empty_lex_str; - definer->auth= empty_lex_str; + definer->reset_auth(); } else #endif -- cgit v1.2.1