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

@@ -5440,7 +5440,7 @@ public:
}
}
Security_context *sctx= &main_security_ctx;
sql_print_warning(ER_THD(this, ER_NEW_ABORTING_CONNECTION),
sql_print_warning(ER_DEFAULT(ER_NEW_ABORTING_CONNECTION),
thread_id, (db.str ? db.str : "unconnected"),
sctx->user ? sctx->user : "unauthenticated",
sctx->host_or_ip, real_ip_str, reason);