Merge pull request #117 from dveeden/fix_show_grants_mariadb

Fix version check in pt-show-grants for MariaDB 10.0+
This commit is contained in:
Carlos Salguero
2016-10-03 11:45:52 -03:00
committed by GitHub

View File

@@ -1921,7 +1921,8 @@ sub main {
# If MySQL 5.7.6+ then we need to use SHOW CREATE USER
my @create_user;
if ( VersionCompare::cmp($version, '5.7.6') >= 0 ) {
if (( VersionCompare::cmp($version, '5.7.6') >= 0 ) &&
( VersionCompare::cmp($version, '10.0.0') <= 0 )) {
eval {
@create_user = @{ $dbh->selectcol_arrayref("SHOW CREATE USER $user_host") };
};