1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

enforce no trailing \n in Diagnostic_area messages

that is in my_error(), push_warning(), etc
This commit is contained in:
Sergei Golubchik
2024-12-28 20:15:43 +01:00
parent 0031f4a74f
commit 9508a44c37
16 changed files with 123 additions and 174 deletions

View File

@ -692,6 +692,7 @@ Sql_condition *Warning_info::push_warning(THD *thd,
const char *msg)
{
Sql_condition *cond= NULL;
DBUG_ASSERT(msg[strlen(msg)-1] != '\n');
if (! m_read_only)
{