From 1d0487cf2f94152f236ae42e84efce85649c174f Mon Sep 17 00:00:00 2001 From: Sveta Smirnova Date: Mon, 21 Jul 2025 18:25:30 +0300 Subject: [PATCH] PT-2418 - pt-online-schema-change 3.7.0 lost data when exe alter xxx rename column xxx - Added instructions to skip the test if server version is less than 8.0 --- t/pt-online-schema-change/PT-2418-timestamp_null_issue.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/pt-online-schema-change/PT-2418-timestamp_null_issue.t b/t/pt-online-schema-change/PT-2418-timestamp_null_issue.t index 84242384..6235f2c3 100644 --- a/t/pt-online-schema-change/PT-2418-timestamp_null_issue.t +++ b/t/pt-online-schema-change/PT-2418-timestamp_null_issue.t @@ -21,7 +21,9 @@ my $dp = new DSNParser(opts=>$dsn_opts); my $sb = new Sandbox(basedir => '/tmp', DSNParser => $dp); my $source_dbh = $sb->get_dbh_for('source'); -if ( !$source_dbh ) { +if ($sandbox_version lt '8.0') { + plan skip_all => 'This test needs MySQL 8.0+'; +} elsif ( !$source_dbh ) { plan skip_all => 'Cannot connect to sandbox source'; }