Skip to content

Commit b87b28d

Browse files
MDEV-37633 [follow up] Add assertion msg is not empty to push_warning
1 parent 9b82681 commit b87b28d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/sql_error.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,7 @@ void push_warning(THD *thd, Sql_condition::enum_warning_level level,
750750
if (level == Sql_condition::WARN_LEVEL_ERROR)
751751
level= Sql_condition::WARN_LEVEL_WARN;
752752

753+
DBUG_ASSERT(strlen(msg));
753754
DBUG_ASSERT(msg[strlen(msg)-1] != '\n');
754755
(void) thd->raise_condition(code, "\0\0\0\0\0", level, msg);
755756

0 commit comments

Comments
 (0)