MySQL 源码解读 -- 打印类
打印类
在sql 中增加warning
push_warning(current_thd, Sql_condition::SL_WARNING,
ER_WRONG_VALUE_FOR_VAR, wrong_msg);
push_warning_printf(thd, Sql_condition::SL_NOTE, ER_NO_SUCH_USER,
ER_THD(thd, ER_NO_SUCH_USER), lex->definer->user.str,
lex->definer->host.str);
my_message_local 打印到master error log 中
my_getopt_error_reporter 打印到master error log