~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/t/row-checksum.test

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Test checksum
 
3
#
 
4
 
 
5
-- source include/have_innodb.inc
 
6
-- source include/have_maria.inc
 
7
 
 
8
--disable_warnings
 
9
drop table if exists t1;
 
10
--enable_warnings
 
11
 
 
12
create table t1 (a int null, v varchar(100)) engine=myisam checksum=0;
 
13
insert into t1 values(null, null), (1, "hello");
 
14
checksum table t1;
 
15
checksum table t1 quick;
 
16
checksum table t1 extended;
 
17
drop table if exists t1;
 
18
create table t1 (a int null, v varchar(100)) engine=myisam checksum=1;
 
19
insert into t1 values(null, null), (1, "hello");
 
20
checksum table t1;
 
21
checksum table t1 quick;
 
22
checksum table t1 extended;
 
23
drop table if exists t1;
 
24
 
 
25
create table t1 (a int null, v varchar(100)) engine=innodb checksum=0;
 
26
insert into t1 values(null, null), (1, "hello");
 
27
checksum table t1;
 
28
checksum table t1 quick;
 
29
checksum table t1 extended;
 
30
drop table t1;
 
31
 
 
32
create table t1 (a int null, v varchar(100)) engine=maria checksum=0;
 
33
insert into t1 values(null, null), (1, "hello");
 
34
checksum table t1;
 
35
checksum table t1 quick;
 
36
checksum table t1 extended;
 
37
drop table t1;
 
38
create table t1 (a int null, v varchar(100)) engine=maria checksum=1;
 
39
insert into t1 values(null, null), (1, "hello");
 
40
checksum table t1;
 
41
checksum table t1 quick;
 
42
checksum table t1 extended;
 
43
drop table t1;
 
44
 
 
45
 
 
46
#
 
47
# These checksums will be different prefixes fixed sizes rows with one extra
 
48
# flag byte
 
49
#
 
50
create table t1 (a int null, v varchar(100)) engine=myisam checksum=1 row_format=fixed;
 
51
insert into t1 values(null, null), (1, "hello");
 
52
checksum table t1;
 
53
checksum table t1 quick;
 
54
checksum table t1 extended;
 
55
drop table if exists t1;
 
56
 
 
57
create table t1 (a int null, v varchar(100)) engine=innodb checksum=0 row_format=fixed;
 
58
insert into t1 values(null, null), (1, "hello");
 
59
checksum table t1;
 
60
checksum table t1 quick;
 
61
checksum table t1 extended;
 
62
drop table t1;