diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc index fb1da901f1b..6c48d98fb48 100644 --- a/sql/sql_plugin.cc +++ b/sql/sql_plugin.cc @@ -241,7 +241,7 @@ static void report_error(int where_to, uint error, ...) if (where_to & REPORT_TO_LOG) { va_start(args, error); - error_log_print(ERROR_LEVEL, ER(error), args); + error_log_print(ERROR_LEVEL, ER_DEFAULT(error), args); va_end(args); } }