mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 17:14:30 +02: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:
parent
e6a9ce2759
commit
7c8c9a8bfa
5 changed files with 18 additions and 17 deletions
|
|
@ -1132,7 +1132,7 @@ DECLARE hhhx VARCHAR(65);
|
|||
DECLARE iiix VARCHAR(65);
|
||||
DECLARE jjjx VARCHAR(65);
|
||||
DECLARE kkkx VARCHAR(65);
|
||||
DECLARE lllx VARCHAR(129);
|
||||
DECLARE lllx VARCHAR(513);
|
||||
DECLARE warn CONDITION FOR SQLSTATE "01234";
|
||||
set aaax= concat(repeat("A", 64), "X");
|
||||
set bbbx= concat(repeat("B", 64), "X");
|
||||
|
|
@ -1145,9 +1145,9 @@ set hhhx= concat(repeat("H", 64), "X");
|
|||
set iiix= concat(repeat("I", 64), "X");
|
||||
set jjjx= concat(repeat("J", 64), "X");
|
||||
set kkkx= concat(repeat("K", 64), "X");
|
||||
set lllx= concat(repeat("1", 100),
|
||||
repeat("2", 20),
|
||||
repeat("8", 8),
|
||||
set lllx= concat(repeat("1", 500),
|
||||
repeat("2", 10),
|
||||
repeat("8", 2),
|
||||
"X");
|
||||
SIGNAL warn SET
|
||||
CLASS_ORIGIN = aaax,
|
||||
|
|
@ -1176,7 +1176,7 @@ Warning 1647 Data truncated for condition item 'TABLE_NAME'
|
|||
Warning 1647 Data truncated for condition item 'COLUMN_NAME'
|
||||
Warning 1647 Data truncated for condition item 'CURSOR_NAME'
|
||||
Warning 1647 Data truncated for condition item 'MESSAGE_TEXT'
|
||||
Warning 10000 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112222222222222222222288888888
|
||||
Warning 10000 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111222222222288
|
||||
drop procedure test_signal $$
|
||||
set sql_mode = DEFAULT $$
|
||||
create procedure test_signal()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue