diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2020-03-16 16:53:10 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2020-03-24 10:34:14 +0100 |
commit | fc90a39426c1756c204b5b3ff2f580a2f4224571 (patch) | |
tree | a6279d4299835158153123e201b2e714050bf3c1 /mysql-test/r/errors.result | |
parent | fb74de97287c1a3db718226a73c01f6334bf2877 (diff) | |
download | mariadb-git-bb-10.2-MDEV-20604.tar.gz |
MDEV-20604: Duplicate key value is silently truncated to 64 characters in print_keydup_errorbb-10.2-MDEV-20604
Added indication of truncated string for "s" and "M" formats
Diffstat (limited to 'mysql-test/r/errors.result')
-rw-r--r-- | mysql-test/r/errors.result | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/r/errors.result b/mysql-test/r/errors.result index 2be04abb15d..6718a8658b0 100644 --- a/mysql-test/r/errors.result +++ b/mysql-test/r/errors.result @@ -172,7 +172,20 @@ UPDATE t1 SET a = 'new' WHERE COLUMN_CREATE( 1, 'v', 1, 'w' ) IS NULL; ERROR 22007: Illegal value used as argument of dynamic column function drop table t1; +set @max_session_mem_used_save= @@max_session_mem_used; set max_session_mem_used = 50000; select * from seq_1_to_1000; set max_session_mem_used = 8192; select * from seq_1_to_1000; +set max_session_mem_used = @max_session_mem_used_save; +# +# MDEV-20604: Duplicate key value is silently truncated to 64 +# characters in print_keydup_error +# +create table t1 (a varchar(100), UNIQUE KEY akey (a)); +insert into t1 values ("1234567890123456789012345678901234567890123456789012345678901234567890_end"); +# The value in the error message should show truncation with "..." +insert into t1 values ("1234567890123456789012345678901234567890123456789012345678901234567890_end"); +ERROR 23000: Duplicate entry '1234567890123456789012345678901234567890123456789012345678901...' for key 'akey' +drop table t1; +# End of 10.2 tests |