mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-20 10:55:01 +00:00
Use latest Quoter::(de)serialize_list() in pt-table-checksum and pt-table-sync. Add more char_chunking.t tests for pt-table-checksum.
This commit is contained in:
@@ -25,7 +25,7 @@ if ( !$master_dbh ) {
|
||||
plan skip_all => 'Cannot connect to sandbox master';
|
||||
}
|
||||
else {
|
||||
plan tests => 2;
|
||||
plan tests => 5;
|
||||
}
|
||||
|
||||
# The sandbox servers run with lock_wait_timeout=3 and it's not dynamic
|
||||
@@ -58,6 +58,27 @@ ok(
|
||||
"Char chunk ascii, chunk size 20"
|
||||
);
|
||||
|
||||
my $row = $master_dbh->selectrow_arrayref("select lower_boundary, upper_boundary from percona.checksums where db='test' and tbl='ascii' and chunk=1");
|
||||
is_deeply(
|
||||
$row,
|
||||
[ '', 'burt' ],
|
||||
"First boundaries"
|
||||
);
|
||||
|
||||
$row = $master_dbh->selectrow_arrayref("select lower_boundary, upper_boundary from percona.checksums where db='test' and tbl='ascii' and chunk=9");
|
||||
is_deeply(
|
||||
$row,
|
||||
[ undef, '' ],
|
||||
"Lower oob boundary"
|
||||
);
|
||||
|
||||
$row = $master_dbh->selectrow_arrayref("select lower_boundary, upper_boundary from percona.checksums where db='test' and tbl='ascii' and chunk=10");
|
||||
is_deeply(
|
||||
$row,
|
||||
[ 'ZESUS\!\!\!', undef ],
|
||||
"Upper oob boundary"
|
||||
);
|
||||
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
|
Reference in New Issue
Block a user