mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-19 00:43:58 +00:00
Updated the fles in /lib to use the new VersionParser
This commit is contained in:
@@ -279,8 +279,7 @@ sub get_connected_slaves {
|
||||
# user with USER(), quote it, and then add it to statement.
|
||||
my $show = "SHOW GRANTS FOR ";
|
||||
my $user = 'CURRENT_USER()';
|
||||
my $vp = $self->{VersionParser};
|
||||
if ( $vp && !$vp->version_ge($dbh, '4.1.2') ) {
|
||||
if ( VersionParser->new($dbh) < '4.1.2' ) {
|
||||
$user = $dbh->selectrow_arrayref('SELECT USER()')->[0];
|
||||
$user =~ s/([^@]+)@(.+)/'$1'\@'$2'/;
|
||||
}
|
||||
|
Reference in New Issue
Block a user