1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-5519: new defaults in columnstore.cnf (#2894)

feat(charset)!: utf8 is a new charset default and utf8_general_ci is a new collation default in the engine configuration file shipped
---------

Co-authored-by: Leonid Fedorov <leonid.fedorov@mariadb.com>
Co-authored-by: mariadb-DanielLee <daniel.lee@mariadb.com>
This commit is contained in:
mariadb-AlexeyVorovich
2023-08-15 11:04:32 -04:00
committed by GitHub
parent 712d34a407
commit 64f1d541d0
50 changed files with 139 additions and 165 deletions

View File

@ -8,7 +8,7 @@ t1 CREATE TABLE `t1` (
`t1_int` int(11) DEFAULT NULL,
`t1_char` char(5) DEFAULT NULL,
CONSTRAINT `CONSTRAINT_1` CHECK (`t1_int` > 0)
) ENGINE=Columnstore DEFAULT CHARSET=latin1
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
INSERT INTO t1 VALUES(NULL, NULL);
INSERT INTO t1 VALUES(1, 'a');
INSERT INTO t1 VALUES(0, 'b');
@ -25,7 +25,7 @@ Table Create Table
t2 CREATE TABLE `t2` (
`t1_char` char(10) DEFAULT NULL,
CONSTRAINT `c1` CHECK (`t1_char` = '')
) ENGINE=Columnstore DEFAULT CHARSET=latin1
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
INSERT INTO t2 VALUES();
INSERT INTO t2 VALUES('');
INSERT INTO t2 VALUES('aaaa');
@ -51,7 +51,7 @@ t3 CREATE TABLE `t3` (
CONSTRAINT `t3_check_date` CHECK (`t3_datetime` >= '1212-12-12 12:12:12'),
CONSTRAINT `t3_check_decimal` CHECK (`t3_decimal` < 888.88),
CONSTRAINT `t3_check_blob` CHECK (`t3_blob` = 'aaaa')
) ENGINE=Columnstore DEFAULT CHARSET=latin1
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
INSERT INTO t3(t3_decimal) VALUES(NULL);
INSERT INTO t3(t3_decimal) VALUES(888.87);
INSERT INTO t3(t3_decimal) VALUES(888.88);