1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

longer myisam keys

This commit is contained in:
serg@serg.mylan
2004-02-20 20:38:34 +01:00
parent 5c74182911
commit 7ff24eb01f
10 changed files with 54 additions and 19 deletions

View File

@ -185,3 +185,24 @@ NULL 2
a 1
a 2
drop table t1;
create table t1 (i int, a char(200), b text, unique (a), unique (b(300))) charset utf8;
insert t1 values (1, repeat('a',210), repeat('b', 310));
Warnings:
Warning 1265 Data truncated for column 'a' at row 1
insert t1 values (2, repeat(0xD0B1,215), repeat(0xD0B1, 310));
Warnings:
Warning 1265 Data truncated for column 'a' at row 1
select i, length(a), length(b), char_length(a), char_length(b) from t1;
i length(a) length(b) char_length(a) char_length(b)
1 200 310 200 310
2 400 620 200 310
select i from t1 where a=repeat(_utf8 'a',200);
i
1
select i from t1 where a=repeat(_utf8 0xD0B1,200);
i
2
select i from t1 where b=repeat(_utf8 'b',310);
i
1
drop table t1;