diff options
author | Varun Gupta <varunraiko1803@gmail.com> | 2018-04-04 19:04:14 +0530 |
---|---|---|
committer | Varun Gupta <varunraiko1803@gmail.com> | 2018-04-04 19:04:14 +0530 |
commit | 7c8c9a8bfa65af9e3f4cc14f89c71796853f1e04 (patch) | |
tree | a484930e4202e03aba76b5edda1efe0ef6c879bc /sql/sql_signal.cc | |
parent | e6a9ce27591abd612dbb1d6b89cf4b5f2cd24a42 (diff) | |
download | mariadb-git-7c8c9a8bfa65af9e3f4cc14f89c71796853f1e04.tar.gz |
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
Diffstat (limited to 'sql/sql_signal.cc')
-rw-r--r-- | sql/sql_signal.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_signal.cc b/sql/sql_signal.cc index 1da8b145151..e1d9dcad57b 100644 --- a/sql/sql_signal.cc +++ b/sql/sql_signal.cc @@ -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) { |