diff options
author | Roman Nozdrin <roman.nozdrin@mariadb.com> | 2020-02-28 15:44:56 +0000 |
---|---|---|
committer | Roman Nozdrin <roman.nozdrin@mariadb.com> | 2020-02-28 17:02:27 +0000 |
commit | 424149e3282e0ff4950726458d006528f5dc187e (patch) | |
tree | bb5811aab0952c442e264c136b92046a22ada922 /mysql-test/main/func_str.test | |
parent | e837a358b660ab259cdf2c12712a925ece98a40d (diff) | |
download | mariadb-git-bb-MDEV-21841.tar.gz |
MDEV-21841 CONV() function doesn't truncate its output to 21 when uses default charset.bb-MDEV-21841
Diffstat (limited to 'mysql-test/main/func_str.test')
-rw-r--r-- | mysql-test/main/func_str.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/main/func_str.test b/mysql-test/main/func_str.test index a01b3942209..ba5b671ca4f 100644 --- a/mysql-test/main/func_str.test +++ b/mysql-test/main/func_str.test @@ -2100,6 +2100,17 @@ DROP TABLE t1, t2; --echo # --echo # +--echo # MDEV-21841 CONV() function truncates the result type to 21 symbol. +--echo # + +CREATE TABLE t1(i BIGINT); +INSERT INTO t1 VALUES (-1); +CREATE TABLE t2 AS SELECT conv(i,16,2) from t1; +SELECT * FROM t2; +SHOW CREATE TABLE t2; +DROP TABLE t1,t2; + +--echo # --echo # MDEV-18205 Assertion `str_length < len' failed in Binary_string::realloc_raw --echo # |