Commit dd62a285 authored by Anel Husakovic's avatar Anel Husakovic Committed by Daniel Black

MDEV-31611: mariadb-setpermission - Can't use string as an ARRAY ref while strict refs in use

Reviewer: <>
parent 78c9a12c
...@@ -226,11 +226,11 @@ sub setpwd ...@@ -226,11 +226,11 @@ sub setpwd
{ {
$pass = "PASSWORD(". $dbh->quote($pass) . ")"; $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; my $sth = $dbh->prepare("set password for $uh =$pass") || die $dbh->errstr;
$sth->execute || die $dbh->errstr; $sth->execute || die $dbh->errstr;
$sth->finish; $sth->finish;
print "The password is set for user $user.\n\n"; print "The password is set for user $uh.\n\n";
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment