mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
10 lines
391 B
Text
10 lines
391 B
Text
|
#
|
||
|
# 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;
|