~vadim-tk/percona-server/percona-galera-5.1.57

« back to all changes in this revision

Viewing changes to tests/myisam-big-rows.tst

  • Committer: root
  • Date: 2011-07-10 16:09:24 UTC
  • Revision ID: root@r815.office.percona.com-20110710160924-fyffqsbaclgu6vui
Initial port

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Test rows with length above > 16M
 
3
# Note that for this to work, you should start mysqld with
 
4
# -O max_allowed_packet=32M
 
5
#
 
6
 
 
7
drop table if exists t1;
 
8
create table t1 (a tinyint not null auto_increment, b longblob not null, primary key (a)) checksum=1;
 
9
 
 
10
insert into t1 (b) values(repeat(char(65),10));
 
11
insert into t1 (b) values(repeat(char(66),10));
 
12
insert into t1 (b) values(repeat(char(67),10));
 
13
update t1 set b=repeat(char(68),16777216) where a=1;
 
14
check table t1;
 
15
update t1 set b=repeat(char(69),16777000) where a=2;
 
16
update t1 set b=repeat(char(70),167) where a=3;
 
17
update t1 set b=repeat(char(71),16778000) where a=1;
 
18
update t1 set b=repeat(char(72),16778000) where a=3;
 
19
select a,length(b) from t1;
 
20
set @a=1;
 
21
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
22
set @a=@a+1;
 
23
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
24
set @a=@a+1;
 
25
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
26
set @a=@a+1;
 
27
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
28
set @a=@a+1;
 
29
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
30
set @a=@a+1;
 
31
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
32
set @a=@a+1;
 
33
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
34
set @a=@a+1;
 
35
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
36
set @a=@a+1;
 
37
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
38
set @a=@a+1;
 
39
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
40
set @a=@a+1;
 
41
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
42
set @a=@a+1;
 
43
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
44
set @a=@a+1;
 
45
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
46
set @a=@a+1;
 
47
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
48
set @a=@a+1;
 
49
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
50
set @a=@a+1;
 
51
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
52
set @a=@a+1;
 
53
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
54
set @a=@a+1;
 
55
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
56
update t1 set b=('A') where a=5;
 
57
delete from t1 where a=7;
 
58
set @a=@a+1;
 
59
insert into t1 (b) values (repeat(char(73+@a),16777200+@a));
 
60
update t1 set b=repeat(char(73+@a+1),17000000+@a) where a=last_insert_id();
 
61
 
 
62
select a,mid(b,1,5),length(b) from t1;
 
63
check table t1;
 
64
repair table t1;
 
65
check table t1;
 
66
select a from table where b<>repeat(mid(b,1,1),length(b));
 
67
delete from t1 where (a & 1);
 
68
select a from table where b<>repeat(mid(b,1,1),length(b));
 
69
check table t1;
 
70
repair table t1;
 
71
check table t1;
 
72
drop table t1;