diff options
author | Sergei Golubchik <serg@mysql.com> | 2009-11-03 11:23:48 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mysql.com> | 2009-11-03 11:23:48 +0100 |
commit | e10157122697f93846fe376e47f3d823b051a8ec (patch) | |
tree | 4c18f1ffd3751c54d703e80de76f5da6d37e2ac3 | |
parent | 3d23068f3a1430d5849ede3f886e7356040bc146 (diff) | |
download | mariadb-git-e10157122697f93846fe376e47f3d823b051a8ec.tar.gz |
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
-rw-r--r-- | sql/sql_plugin.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |