Skip to content
Snippets Groups Projects
Commit 3b0385af authored by Bryan Horstmann-Allen's avatar Bryan Horstmann-Allen
Browse files

Add MySQL 5.x check to SHOW STATUS, so we can work on MySQL 4 clients

parent 10837e95
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ sub handler {
my $pass = $config->{'pass'};
my $dbh = DBI->connect("DBI:mysql::$target;port=$port", $user, $pass);
my $select_query = "SHOW GLOBAL STATUS";
my $select_query = "SHOW /*!50002 GLOBAL */ STATUS";
my $sth = $dbh->prepare($select_query);
$sth->execute();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment