1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

don't use session locale for the error log

This commit is contained in:
Sergei Golubchik
2024-05-21 21:04:41 +02:00
parent 9cb0bb1de0
commit aebd16201f
11 changed files with 16 additions and 18 deletions

View File

@@ -7651,7 +7651,7 @@ static void print_unsafe_warning_to_log(THD *thd, int unsafe_type, char* buf,
DBUG_ENTER("print_unsafe_warning_in_log");
sprintf(buf, ER_THD(thd, ER_BINLOG_UNSAFE_STATEMENT),
ER_THD(thd, LEX::binlog_stmt_unsafe_errcode[unsafe_type]));
sql_print_warning(ER_THD(thd, ER_MESSAGE_AND_STATEMENT), buf, query);
sql_print_warning(ER_DEFAULT(ER_MESSAGE_AND_STATEMENT), buf, query);
DBUG_VOID_RETURN;
}