mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-16 00:03:02 +00:00
PT-2340 - Support MySQL 8.4
- Removed offensive terminology from library files and their tests - Removed unused sandbox/prove2junit.pl - Added option mysql_ssl to DSN and possibility to have DSN of multiple letters
This commit is contained in:
@@ -20,7 +20,7 @@ use PerconaTest;
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
my $sb = new Sandbox(basedir => '/tmp', DSNParser => $dp);
|
||||
my $dbh = $sb->get_dbh_for('master');
|
||||
my $dbh = $sb->get_dbh_for('source');
|
||||
|
||||
if ( !$dbh ) {
|
||||
plan skip_all => 'Cannot connect to sandbox master';
|
||||
@@ -550,7 +550,7 @@ SKIP: {
|
||||
# #############################################################################
|
||||
# Issue 47: TableChunker::range_num broken for very large bigint
|
||||
# #############################################################################
|
||||
$sb->load_file('master', 't/lib/samples/issue_47.sql');
|
||||
$sb->load_file('source', 't/lib/samples/issue_47.sql');
|
||||
$t = $tp->parse( $tp->get_create_table($dbh, 'test', 'issue_47') );
|
||||
my %params = $c->get_range_statistics(
|
||||
dbh => $dbh,
|
||||
@@ -591,7 +591,7 @@ is(
|
||||
'Adds USE INDEX (issue 8)'
|
||||
);
|
||||
|
||||
$sb->load_file('master', 't/lib/samples/issue_8.sql');
|
||||
$sb->load_file('source', 't/lib/samples/issue_8.sql');
|
||||
$t = $tp->parse( $tp->get_create_table($dbh, 'test', 'issue_8') );
|
||||
my @candidates = $c->find_chunk_columns(tbl_struct=>$t);
|
||||
is_deeply(
|
||||
@@ -628,7 +628,7 @@ $Data::Dumper::Quotekeys = 0;
|
||||
# is ignored then the chunks are much better and the first chunk will
|
||||
# cover the zero row.
|
||||
|
||||
$sb->load_file('master', 't/lib/samples/issue_941.sql');
|
||||
$sb->load_file('source', 't/lib/samples/issue_941.sql');
|
||||
|
||||
# We use empty SQL mode here, because zero dates do not work with
|
||||
# the default SQL mode. We do not adjust the tool, because, if users
|
||||
@@ -764,7 +764,7 @@ test_zero_row(
|
||||
# #############################################################################
|
||||
# Issue 602: mk-table-checksum issue with invalid dates
|
||||
# #############################################################################
|
||||
$sb->load_file('master', 't/pt-table-checksum/samples/issue_602.sql');
|
||||
$sb->load_file('source', 't/pt-table-checksum/samples/issue_602.sql');
|
||||
$t = $tp->parse( $tp->get_create_table($dbh, 'issue_602', 't') );
|
||||
%params = $c->get_range_statistics(
|
||||
dbh => $dbh,
|
||||
@@ -977,7 +977,7 @@ is_deeply(
|
||||
"get_first_chunkable_column(), bad preferred column and index"
|
||||
);
|
||||
|
||||
$sb->load_file('master', "t/lib/samples/t1.sql", 'test');
|
||||
$sb->load_file('source', "t/lib/samples/t1.sql", 'test');
|
||||
$t = $tp->parse( load_file('t/lib/samples/t1.sql') );
|
||||
|
||||
is_deeply(
|
||||
@@ -987,7 +987,7 @@ is_deeply(
|
||||
);
|
||||
|
||||
# char chunking ###############################################################
|
||||
$sb->load_file('master', "t/lib/samples/char-chunking/ascii.sql", 'test');
|
||||
$sb->load_file('source', "t/lib/samples/char-chunking/ascii.sql", 'test');
|
||||
$t = $tp->parse( $tp->get_create_table($dbh, 'test', 'ascii') );
|
||||
|
||||
is_deeply(
|
||||
@@ -1180,7 +1180,7 @@ SKIP: {
|
||||
);
|
||||
}
|
||||
|
||||
$sb->load_file('master', "t/lib/samples/char-chunking/world-city.sql", 'test');
|
||||
$sb->load_file('source', "t/lib/samples/char-chunking/world-city.sql", 'test');
|
||||
$t = $tp->parse( $tp->get_create_table($dbh, 'test', 'world_city') );
|
||||
%params = $c->get_range_statistics(
|
||||
dbh => $dbh,
|
||||
@@ -1269,7 +1269,7 @@ SKIP: {
|
||||
# ############################################################################
|
||||
# Bug 821673: pt-table-checksum doesn't included --where in min max queries
|
||||
# ############################################################################
|
||||
$sb->load_file('master', "t/pt-table-checksum/samples/where01.sql");
|
||||
$sb->load_file('source', "t/pt-table-checksum/samples/where01.sql");
|
||||
$t = $tp->parse( $tp->get_create_table($dbh, 'test', 'checksum_test') );
|
||||
%params = $c->get_range_statistics(
|
||||
dbh => $dbh,
|
||||
@@ -1291,7 +1291,7 @@ is(
|
||||
);
|
||||
|
||||
# char chunking
|
||||
$sb->load_file('master', "t/pt-table-checksum/samples/where02.sql");
|
||||
$sb->load_file('source', "t/pt-table-checksum/samples/where02.sql");
|
||||
$t = $tp->parse( $tp->get_create_table($dbh, 'test', 'checksum_test') );
|
||||
%params = $c->get_range_statistics(
|
||||
dbh => $dbh,
|
||||
@@ -1327,7 +1327,7 @@ is(
|
||||
# #############################################################################
|
||||
# Bug 967451: Char chunking doesn't quote column name
|
||||
# #############################################################################
|
||||
$sb->load_file('master', "t/lib/samples/char-chunking/ascii.sql", 'test');
|
||||
$sb->load_file('source', "t/lib/samples/char-chunking/ascii.sql", 'test');
|
||||
$dbh->do("ALTER TABLE test.ascii CHANGE COLUMN c `key` char(64) NOT NULL");
|
||||
$t = $tp->parse( $tp->get_create_table($dbh, 'test', 'ascii') );
|
||||
|
||||
@@ -1387,7 +1387,7 @@ is(
|
||||
# Bug 1034717: Divison by zero error when all columns tsart with the same char
|
||||
# https://bugs.launchpad.net/percona-toolkit/+bug/1034717
|
||||
# #############################################################################
|
||||
$sb->load_file('master', "t/lib/samples/bug_1034717.sql", 'test');
|
||||
$sb->load_file('source', "t/lib/samples/bug_1034717.sql", 'test');
|
||||
$t = $tp->parse( $tp->get_create_table($dbh, 'bug_1034717', 'table1') );
|
||||
|
||||
%params = $c->get_range_statistics(
|
||||
|
Reference in New Issue
Block a user