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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user