1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-24797 Column Compression - ERROR 1265 (01000): Data truncated for column

Fix issue was earlier fixed by MDEV-31724. Only adding MTR tests.
This commit is contained in:
Alexander Barkov
2023-08-15 09:36:38 +04:00
parent 1fa7c9a3cd
commit 9c8ae6dca5
2 changed files with 26 additions and 0 deletions

View File

@ -2908,5 +2908,16 @@ DROP TABLE t1;
SET @@column_compression_threshold=DEFAULT; SET @@column_compression_threshold=DEFAULT;
DROP FUNCTION f1; DROP FUNCTION f1;
# #
# MDEV-24797 Column Compression - ERROR 1265 (01000): Data truncated for column
#
CREATE TABLE t1 (a VARCHAR(500) COMPRESSED CHARACTER SET utf8mb3) ENGINE=MyISAM;
INSERT INTO t1 SET a=REPEAT('x',127);
ALTER TABLE t1 FORCE, ALGORITHM=COPY;
DROP TABLE t1;
CREATE TABLE t1 (a VARCHAR(500) COMPRESSED CHARACTER SET utf8mb3) ENGINE=InnoDB;
INSERT INTO t1 SET a=REPEAT('x',127);
ALTER TABLE t1 FORCE, ALGORITHM=COPY;
DROP TABLE t1;
#
# End of 10.4 tests # End of 10.4 tests
# #

View File

@ -438,6 +438,21 @@ SET @@column_compression_threshold=DEFAULT;
DROP FUNCTION f1; DROP FUNCTION f1;
--echo #
--echo # MDEV-24797 Column Compression - ERROR 1265 (01000): Data truncated for column
--echo #
CREATE TABLE t1 (a VARCHAR(500) COMPRESSED CHARACTER SET utf8mb3) ENGINE=MyISAM;
INSERT INTO t1 SET a=REPEAT('x',127);
ALTER TABLE t1 FORCE, ALGORITHM=COPY;
DROP TABLE t1;
CREATE TABLE t1 (a VARCHAR(500) COMPRESSED CHARACTER SET utf8mb3) ENGINE=InnoDB;
INSERT INTO t1 SET a=REPEAT('x',127);
ALTER TABLE t1 FORCE, ALGORITHM=COPY;
DROP TABLE t1;
--echo # --echo #
--echo # End of 10.4 tests --echo # End of 10.4 tests
--echo # --echo #