PT-2340 - Support MySQL 8.4

- Updated modules and tests for pt-table-sync, pt-table-usage, pt-upgrade, pt-variable-advisor
This commit is contained in:
Sveta Smirnova
2024-08-03 17:03:48 +03:00
parent 56599f01ad
commit a38bee6d60
69 changed files with 1442 additions and 1304 deletions

View File

@@ -18,26 +18,26 @@ require "$trunk/bin/pt-table-sync";
my $output;
my $dp = new DSNParser(opts=>$dsn_opts);
my $sb = new Sandbox(basedir => '/tmp', DSNParser => $dp);
my $master_dbh = $sb->get_dbh_for('master');
my $source_dbh = $sb->get_dbh_for('source');
diag(`$trunk/sandbox/start-sandbox master 12348 >/dev/null`);
my $dbh2 = $sb->get_dbh_for('master1');
diag(`$trunk/sandbox/start-sandbox source 12348 >/dev/null`);
my $dbh2 = $sb->get_dbh_for('source1');
if ( !$master_dbh ) {
plan skip_all => 'Cannot connect to sandbox master';
if ( !$source_dbh ) {
plan skip_all => 'Cannot connect to sandbox source';
}
elsif ( !$dbh2 ) {
plan skip_all => 'Cannot connect to second sandbox master';
plan skip_all => 'Cannot connect to second sandbox source';
}
else {
plan tests => 2;
}
$sb->wipe_clean($master_dbh);
$sb->create_dbs($master_dbh, [qw(test)]);
$sb->wipe_clean($source_dbh);
$sb->create_dbs($source_dbh, [qw(test)]);
# Need at least 1 table so the db will be used.
$master_dbh->do('create table test.foo (i int)');
$source_dbh->do('create table test.foo (i int)');
# #############################################################################
# Issue 408: DBD::mysql::st execute failed: Unknown database 'd1' at
@@ -54,7 +54,7 @@ like(
# #############################################################################
# Done.
# #############################################################################
$sb->wipe_clean($master_dbh);
$sb->wipe_clean($source_dbh);
diag(`/tmp/12348/stop >/dev/null`);
diag(`rm -rf /tmp/12348 >/dev/null`);
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");