Commit 01c2a65f authored by Sergei Golubchik's avatar Sergei Golubchik

sql_plugin.cc: error log messages should not depend on the current_thd lc_messages.

this also fixes a crash when plugin_init() uses ER() too early
parent d101d144
...@@ -241,7 +241,7 @@ static void report_error(int where_to, uint error, ...) ...@@ -241,7 +241,7 @@ static void report_error(int where_to, uint error, ...)
if (where_to & REPORT_TO_LOG) if (where_to & REPORT_TO_LOG)
{ {
va_start(args, error); va_start(args, error);
error_log_print(ERROR_LEVEL, ER(error), args); error_log_print(ERROR_LEVEL, ER_DEFAULT(error), args);
va_end(args); va_end(args);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment