Skip to content

Commit 401cb54

Browse files
committed
Removing warnings for SQL request
1 parent a067edd commit 401cb54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mysqltuner.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ sub mysql_setup {
886886
sub select_array {
887887
my $req = shift;
888888
debugprint "PERFORM: $req ";
889-
my @result = `$mysqlcmd $mysqllogin -Bse "$req" 2>>/dev/null`;
889+
my @result = `$mysqlcmd $mysqllogin -Bse "\\w$req" 2>>/dev/null`;
890890
if ( $? != 0 ) {
891891
badprint "failed to execute: $req";
892892
badprint "FAIL Execute SQL / return code: $?";
@@ -905,7 +905,7 @@ sub select_array {
905905
sub select_one {
906906
my $req = shift;
907907
debugprint "PERFORM: $req ";
908-
my $result = `$mysqlcmd $mysqllogin -Bse "$req" 2>>/dev/null`;
908+
my $result = `$mysqlcmd $mysqllogin -Bse "\\w$req" 2>>/dev/null`;
909909
if ( $? != 0 ) {
910910
badprint "failed to execute: $req";
911911
badprint "FAIL Execute SQL / return code: $?";

0 commit comments

Comments
 (0)