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:
Daniel Nichter
2011-12-29 17:25:38 -07:00
parent 1f06ea093a
commit c58dfca1b5
49 changed files with 83 additions and 25400 deletions

View File

@@ -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.
# #############################################################################