You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Update mcs7_create_table_with_metadata.test
This commit is contained in:
committed by
KirillPerov
parent
c7bbb0a563
commit
5e0e93a9fe
@ -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
|
||||
|
Reference in New Issue
Block a user