From 5e0e93a9fe080c114dc775a9901eb933c6aca947 Mon Sep 17 00:00:00 2001 From: mariadb-KirillPerov <102637268+KirillPerov@users.noreply.github.com> Date: Sat, 1 Oct 2022 05:33:43 +0600 Subject: [PATCH] Update mcs7_create_table_with_metadata.test --- .../columnstore/basic/t/mcs7_create_table_with_metadata.test | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mysql-test/columnstore/basic/t/mcs7_create_table_with_metadata.test b/mysql-test/columnstore/basic/t/mcs7_create_table_with_metadata.test index 09190851a..dabd48eb0 100644 --- a/mysql-test/columnstore/basic/t/mcs7_create_table_with_metadata.test +++ b/mysql-test/columnstore/basic/t/mcs7_create_table_with_metadata.test @@ -13,16 +13,19 @@ USE mcs7_db; CREATE TABLE t1 (c1 VARCHAR(30), c2 INTEGER COMMENT '0123456789') COMMENT='abcdefghijklmnopqrstuvwxyz' ENGINE=Columnstore; SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1' AND table_schema='mcs7_db'; SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1' AND table_schema='mcs7_db'; +--replace_regex /( COLLATE=latin1_swedish_ci)// SHOW CREATE TABLE t1; CREATE TABLE t2 (c1 INTEGER COMMENT '0123456789') ENGINE=Columnstore; SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t2' AND table_schema='mcs7_db'; SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t2' AND table_schema='mcs7_db'; +--replace_regex /( COLLATE=latin1_swedish_ci)// SHOW CREATE TABLE t2; CREATE TABLE t3 (c1 VARCHAR(40))COMMENT='abcdefghijklmnopqrstuvwxyz' ENGINE=Columnstore; SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t3' AND table_schema='mcs7_db'; SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t3' AND table_schema='mcs7_db'; +--replace_regex /( COLLATE=latin1_swedish_ci)// SHOW CREATE TABLE t3; #negative scenarios. max comment length for column is 1024 bytes and for a table it is 2048 bytes