MDEV-31611: mariadb-setpermission - Can't use string as an ARRAY ref while strict refs in use
Reviewer: <>
This commit is contained in:
parent
78c9a12c8f
commit
dd62a285b8
@ -226,11 +226,11 @@ sub setpwd
|
||||
{
|
||||
$pass = "PASSWORD(". $dbh->quote($pass) . ")";
|
||||
}
|
||||
my $uh= "$user@$host";
|
||||
my $uh= $user."@".$host;
|
||||
my $sth = $dbh->prepare("set password for $uh =$pass") || die $dbh->errstr;
|
||||
$sth->execute || die $dbh->errstr;
|
||||
$sth->finish;
|
||||
print "The password is set for user $user.\n\n";
|
||||
print "The password is set for user $uh.\n\n";
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user