From 01c2a65f39d2c84357c757b57e2bbed9d9e5203b Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 3 Nov 2009 11:23:48 +0100 Subject: [PATCH] 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 --- sql/sql_plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }