summaryrefslogtreecommitdiffstats
path: root/mysql-test/main/column_compression_utf16.result
blob: 142eaa9f96545fa9de2e588ab14372f7bcd2e87d (plain)
1
2
3
4
5
6
7
8
9
#
# MDEV-15938 - TINYTEXT CHARACTER SET utf8 COMPRESSED truncates data
#
CREATE TABLE t1(a TINYTEXT COMPRESSED, b TINYTEXT) CHARACTER SET utf16;
INSERT INTO t1 VALUES (REPEAT(_latin1'a', 127), REPEAT(_latin1'a', 127));
SELECT CHAR_LENGTH(a), CHAR_LENGTH(b), LEFT(a, 10), LEFT(b, 10) FROM t1;
CHAR_LENGTH(a)	CHAR_LENGTH(b)	LEFT(a, 10)	LEFT(b, 10)
127	127	aaaaaaaaaa	aaaaaaaaaa
DROP TABLE t1;