1
0
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:
Varun Gupta
2018-04-04 19:04:14 +05:30
parent e6a9ce2759
commit 7c8c9a8bfa
5 changed files with 18 additions and 17 deletions

View File

@ -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)
{