mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-19123 Change default charset from latin1 to utf8mb4
Changing the default server character set from latin1 to utf8mb4.
This commit is contained in:
@ -21,7 +21,7 @@ explain extended select uncompressed_length(compress(@test_compress_string))=len
|
||||
select uncompressed_length(compress(@test_compress_string));
|
||||
select length(compress(@test_compress_string))<length(@test_compress_string);
|
||||
|
||||
create table t1 (a text, b char(255), c char(4)) engine=myisam;
|
||||
create table t1 (a blob, b binary(255), c char(4)) engine=myisam;
|
||||
insert into t1 (a,b,c) values (compress(@test_compress_string),compress(@test_compress_string),'d ');
|
||||
select uncompress(a) from t1;
|
||||
select uncompress(b) from t1;
|
||||
@ -37,7 +37,7 @@ select uncompressed_length("");
|
||||
# errors
|
||||
#
|
||||
|
||||
create table t1 (a text);
|
||||
create table t1 (a blob);
|
||||
insert t1 values (compress(null)), ('A\0\0\0BBBBBBBB'), (compress(space(50000))), (space(50000));
|
||||
select length(a) from t1;
|
||||
select length(uncompress(a)) from t1;
|
||||
@ -168,7 +168,7 @@ set global max_allowed_packet=@save_max_allowed_packet;
|
||||
--echo # MDEV-10864 Wrong result for WHERE .. (f2=COMPRESS('test') OR f2=COMPRESS('TEST'))
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 (f1 VARCHAR(4), f2 VARCHAR(64), UNIQUE KEY k1 (f1,f2));
|
||||
CREATE TABLE t1 (f1 VARCHAR(4), f2 VARBINARY(64), UNIQUE KEY k1 (f1,f2));
|
||||
INSERT INTO t1 VALUES ('test',compress('test')), ('TEST', compress('TEST'));
|
||||
SELECT f1,HEX(f2) FROM t1 ignore index(k1) WHERE f1='test' AND (f2= compress("test") OR f2= compress("TEST"));
|
||||
SELECT f1,HEX(f2) FROM t1 WHERE f1='test' AND (f2= compress("test") OR f2= compress("TEST"));
|
||||
|
Reference in New Issue
Block a user