mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-03 19:15:54 +00:00
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:
@@ -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") };
|
||||
};
|
||||
|
Reference in New Issue
Block a user