mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 19:41:47 +01:00
branches/zip: innodb-index.test: Check the length of the long columns.
This commit is contained in:
parent
1bddcae5ae
commit
d9c3a96f4f
2 changed files with 18 additions and 0 deletions
|
@ -947,6 +947,10 @@ select a,b=repeat(d,10*a),c=repeat(d,20*a) from t1;
|
|||
a b=repeat(d,10*a) c=repeat(d,20*a)
|
||||
22 1 1
|
||||
44 1 1
|
||||
select a,length(b),length(c),d from t1;
|
||||
a length(b) length(c) d
|
||||
22 2200 4400 jejdkrun87
|
||||
44 4400 8800 adfd72nh9k
|
||||
alter table t1 add primary key (a), add key (b(20));
|
||||
select count(*) from t1 where a=44;
|
||||
count(*)
|
||||
|
@ -955,6 +959,10 @@ select a,b=repeat(d,10*a),c=repeat(d,20*a) from t1;
|
|||
a b=repeat(d,10*a) c=repeat(d,20*a)
|
||||
22 1 1
|
||||
44 1 1
|
||||
select a,length(b),length(c),d from t1;
|
||||
a length(b) length(c) d
|
||||
22 2200 4400 jejdkrun87
|
||||
44 4400 8800 adfd72nh9k
|
||||
insert into t1 values (33,repeat('adfdpplkeock',330),repeat('adfdpplkeock',660),'adfdpplkeock');
|
||||
insert into t1 values (55,repeat('adfdijnmnb78k',550),repeat('adfdijnmnb78k',1100),'adfdijnmnb78k');
|
||||
insert into t1 values (66,repeat('adfdijn0loKNHJik',660),repeat('adfdijn0loKNHJik',1320),'adfdijn0loKNHJik');
|
||||
|
@ -981,4 +989,11 @@ a b=repeat(d,10*a) c=repeat(d,20*a)
|
|||
44 1 1
|
||||
55 1 1
|
||||
66 1 1
|
||||
select a,length(b),length(c),d from t1;
|
||||
a length(b) length(c) d
|
||||
22 2200 4400 jejdkrun87
|
||||
33 3960 7920 adfdpplkeock
|
||||
44 4400 8800 adfd72nh9k
|
||||
55 7150 14300 adfdijnmnb78k
|
||||
66 10560 21120 adfdijn0loKNHJik
|
||||
drop table t1;
|
||||
|
|
|
@ -271,9 +271,11 @@ insert into t1 values (44,repeat('adfd72nh9k',440),repeat('adfd72nh9k',880),'adf
|
|||
|
||||
select count(*) from t1 where a=44;
|
||||
select a,b=repeat(d,10*a),c=repeat(d,20*a) from t1;
|
||||
select a,length(b),length(c),d from t1;
|
||||
alter table t1 add primary key (a), add key (b(20));
|
||||
select count(*) from t1 where a=44;
|
||||
select a,b=repeat(d,10*a),c=repeat(d,20*a) from t1;
|
||||
select a,length(b),length(c),d from t1;
|
||||
insert into t1 values (33,repeat('adfdpplkeock',330),repeat('adfdpplkeock',660),'adfdpplkeock');
|
||||
insert into t1 values (55,repeat('adfdijnmnb78k',550),repeat('adfdijnmnb78k',1100),'adfdijnmnb78k');
|
||||
insert into t1 values (66,repeat('adfdijn0loKNHJik',660),repeat('adfdijn0loKNHJik',1320),'adfdijn0loKNHJik');
|
||||
|
@ -281,4 +283,5 @@ show create table t1;
|
|||
check table t1;
|
||||
explain select * from t1 where b like 'adfd%';
|
||||
select a,b=repeat(d,10*a),c=repeat(d,20*a) from t1;
|
||||
select a,length(b),length(c),d from t1;
|
||||
drop table t1;
|
||||
|
|
Loading…
Add table
Reference in a new issue