PT-2340 - Support MySQL 8.4

- Fixed 5.7 tests
This commit is contained in:
Sveta Smirnova
2024-08-25 04:36:37 +03:00
parent b332537481
commit 194bb99ef9
7 changed files with 83 additions and 32 deletions

View File

@@ -45,9 +45,15 @@ my ($replica1_dbh, $replica1_dsn) = $sb->start_sandbox(
);
my $replica1_port = $sb->port_for('chan_replica1');
$sb->load_file('chan_source1', "sandbox/gtid_on.sql", undef, no_wait => 1);
$sb->load_file('chan_source2', "sandbox/gtid_on.sql", undef, no_wait => 1);
$sb->load_file('chan_replica1', "sandbox/replica_channels.sql", undef, no_wait => 1);
if ( $sandbox_version lt '8.1' ) {
$sb->load_file('chan_source1', "sandbox/gtid_on-legacy.sql", undef, no_wait => 1);
$sb->load_file('chan_source2', "sandbox/gtid_on-legacy.sql", undef, no_wait => 1);
$sb->load_file('chan_replica1', "sandbox/replica_channels-legacy.sql", undef, no_wait => 1);
} else {
$sb->load_file('chan_source1', "sandbox/gtid_on.sql", undef, no_wait => 1);
$sb->load_file('chan_source2', "sandbox/gtid_on.sql", undef, no_wait => 1);
$sb->load_file('chan_replica1', "sandbox/replica_channels.sql", undef, no_wait => 1);
}
my @args = qw(--execute --no-foreign-key-checks --verbose --databases=sakila --tables=actor --sync-to-source --channel=sourcechan1);
my $exit_status;
@@ -61,7 +67,7 @@ like (
$output,
qr/sakila.actor/,
'Synced actor table'
);
) or diag($output);
$sb->stop_sandbox(qw(chan_source1 chan_source2 chan_replica1));