Skip utf8 tests when DBD::mysql less than 4.0

This commit is contained in:
Baron Schwartz
2012-06-04 00:23:55 -04:00
parent 45c85ba40d
commit 40017ec5bd
2 changed files with 15 additions and 5 deletions

View File

@@ -22,6 +22,10 @@ my $dbh = $sb->get_dbh_for('master');
if ( !$dbh ) {
plan skip_all => 'Cannot connect to sandbox master';
}
elsif ( $DBD::mysql::VERSION lt '4' ) {
plan skip_all => "DBD::mysql version $DBD::mysql::VERSION has utf8 bugs. "
. "See https://bugs.launchpad.net/percona-toolkit/+bug/932327";
}
else {
plan tests => 3;
}