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

@@ -22,14 +22,14 @@ require "$trunk/bin/pt-upgrade";
my $dp = new DSNParser(opts=>$dsn_opts);
my $sb = new Sandbox(basedir => '/tmp', DSNParser => $dp);
my $dbh1 = $sb->get_dbh_for('master');
my $dbh2 = $sb->get_dbh_for('master');
my $dbh1 = $sb->get_dbh_for('source');
my $dbh2 = $sb->get_dbh_for('source');
if ( !$dbh1 || !$dbh2 ) {
plan skip_all => "Cannot connect to sandbox master";
plan skip_all => "Cannot connect to sandbox source";
}
$sb->load_file('master', "t/lib/samples/compare-warnings.sql");
$sb->load_file('source', "t/lib/samples/compare-warnings.sql");
sub clear_warnings {
$dbh1->do("SELECT /* clear warnings */ 1 FROM mysql.user");