mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-15241: make SIGNAL maximum MESSAGE_TEXT length a larger value
Increasing the length of MESSAGE_TEXT from 128 to MYSQL_ERRMSG_SIZE which is the max length of the error message
This commit is contained in:
@ -262,12 +262,13 @@ int Sql_cmd_common_signal::eval_signal_informations(THD *thd, Sql_condition *con
|
||||
}
|
||||
/*
|
||||
Enforce that SET MESSAGE_TEXT = <value> evaluates the value
|
||||
as VARCHAR(128) CHARACTER SET UTF8.
|
||||
as VARCHAR(MYSQL_ERRMSG_SIZE) CHARACTER SET UTF8.
|
||||
*/
|
||||
bool truncated;
|
||||
String utf8_text;
|
||||
str= set->val_str(& str_value);
|
||||
truncated= assign_fixed_string(thd->mem_root, & my_charset_utf8_bin, 128,
|
||||
truncated= assign_fixed_string(thd->mem_root, & my_charset_utf8_bin,
|
||||
MYSQL_ERRMSG_SIZE,
|
||||
& utf8_text, str);
|
||||
if (truncated)
|
||||
{
|
||||
|
Reference in New Issue
Block a user