-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #715 from hustjieke/feature_complete_checksum_stmt
*.: complete checksum statement #703
- Loading branch information
Showing
15 changed files
with
3,406 additions
and
3,013 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
create database if not exists integrate_test DEFAULT CHARSET=utf8; | ||
|
||
drop table if exists integrate_test.t1,integrate_test.t2; | ||
|
||
create /*test partition hash, Test of refering to old values*/ table integrate_test.t1 (a int not null key); | ||
|
||
insert into integrate_test.t1 values (1), (6); | ||
|
||
checksum table integrate_test.t1; | ||
Table Checksum | ||
integrate_test.t1 3727148865 | ||
|
||
|
||
create /*Test of duplicate key values with packed keys */ table integrate_test.t2 (id bigint not null auto_increment primary key, username varchar(32) not null); | ||
|
||
insert into integrate_test.t2 values (0,"mysql"); | ||
|
||
insert into integrate_test.t2 values (0,"mysql ab"); | ||
|
||
insert into integrate_test.t2 values (0,"mysql a"); | ||
|
||
insert into integrate_test.t2 values (0,"r1manic"); | ||
|
||
insert into integrate_test.t2 values (0,"r1man"); | ||
|
||
checksum table integrate_test.t1, integrate_test.t2; | ||
Table Checksum | ||
integrate_test.t1 3727148865 | ||
integrate_test.t2 92212347 | ||
|
||
|
||
create /*test partition single, Test of refering to old values*/ table integrate_test.t3 (a int not null key) single; | ||
|
||
insert into integrate_test.t3 values (1); | ||
|
||
insert into integrate_test.t3 values (a+2); | ||
|
||
insert into integrate_test.t3 values (a+3),(a+4); | ||
|
||
insert into integrate_test.t3 values (5),(a+6); | ||
|
||
checksum tables integrate_test.t3; | ||
Table Checksum | ||
integrate_test.t3 1646839619 | ||
|
||
checksum tables integrate_test.t3 quick; | ||
Table Checksum | ||
integrate_test.t3 NULL | ||
|
||
checksum tables integrate_test.t3 extended; | ||
Table Checksum | ||
integrate_test.t3 1646839619 | ||
|
||
|
||
checksum table integrate_test.t1, integrate_test.t2, integrate_test.t3 extended; | ||
Table Checksum | ||
integrate_test.t1 3727148865 | ||
integrate_test.t2 92212347 | ||
integrate_test.t3 1646839619 | ||
|
||
checksum table integrate_test.t1, integrate_test.t2, integrate_test.t3 quick; | ||
Table Checksum | ||
integrate_test.t1 NULL | ||
integrate_test.t2 NULL | ||
integrate_test.t3 NULL | ||
|
||
checksum table integrate_test.t1, integrate_test.t2, xx.t, integrate_test.t3 quick; | ||
Table Checksum | ||
integrate_test.t1 NULL | ||
integrate_test.t2 NULL | ||
xx.t NULL | ||
integrate_test.t3 NULL | ||
|
||
checksum table integrate_test.t1, integrate_test.t2, integrate_test.t3, xx.t extended; | ||
Table Checksum | ||
integrate_test.t1 3727148865 | ||
integrate_test.t2 92212347 | ||
integrate_test.t3 1646839619 | ||
xx.t NULL | ||
|
||
|
||
drop table integrate_test.t1, integrate_test.t2, integrate_test.t3; | ||
|
||
drop database integrate_test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
create database if not exists integrate_test DEFAULT CHARSET=utf8; | ||
drop table if exists integrate_test.t1,integrate_test.t2; | ||
create /*test partition hash, Test of refering to old values*/ table integrate_test.t1 (a int not null key); | ||
insert into integrate_test.t1 values (1), (6); | ||
checksum table integrate_test.t1; | ||
|
||
create /*Test of duplicate key values with packed keys */ table integrate_test.t2 (id bigint not null auto_increment primary key, username varchar(32) not null); | ||
insert into integrate_test.t2 values (0,"mysql"); | ||
insert into integrate_test.t2 values (0,"mysql ab"); | ||
insert into integrate_test.t2 values (0,"mysql a"); | ||
insert into integrate_test.t2 values (0,"r1manic"); | ||
insert into integrate_test.t2 values (0,"r1man"); | ||
checksum table integrate_test.t1, integrate_test.t2; | ||
|
||
create /*test partition single, Test of refering to old values*/ table integrate_test.t3 (a int not null key) single; | ||
insert into integrate_test.t3 values (1); | ||
insert into integrate_test.t3 values (a+2); | ||
insert into integrate_test.t3 values (a+3),(a+4); | ||
insert into integrate_test.t3 values (5),(a+6); | ||
checksum tables integrate_test.t3; | ||
checksum tables integrate_test.t3 quick; | ||
checksum tables integrate_test.t3 extended; | ||
|
||
checksum table integrate_test.t1, integrate_test.t2, integrate_test.t3 extended; | ||
checksum table integrate_test.t1, integrate_test.t2, integrate_test.t3 quick; | ||
checksum table integrate_test.t1, integrate_test.t2, xx.t, integrate_test.t3 quick; | ||
checksum table integrate_test.t1, integrate_test.t2, integrate_test.t3, xx.t extended; | ||
|
||
drop table integrate_test.t1, integrate_test.t2, integrate_test.t3; | ||
drop database integrate_test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.