From 83aa7c9e73f40f3be3ab071dc2a73cfe41d18870 Mon Sep 17 00:00:00 2001 From: dd-han Date: Thu, 8 Dec 2016 22:38:14 +0800 Subject: fix SQL syntax error on MariaDB 10.0.27 and 10.1.19 --- lib/DatabaseStatistics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/DatabaseStatistics.php b/lib/DatabaseStatistics.php index 50abfa8..a604a34 100644 --- a/lib/DatabaseStatistics.php +++ b/lib/DatabaseStatistics.php @@ -93,7 +93,7 @@ class DatabaseStatistics { switch ($this->config->getSystemValue('dbtype')) { case 'mysql': $db_name = $this->config->getSystemValue('dbname'); - $sql = 'SHOW TABLE STATUS FROM ' . $db_name; + $sql = 'SHOW TABLE STATUS FROM `' . $db_name . '`'; $result = $this->connection->executeQuery($sql); $database_size = 0; while ($row = $result->fetch()) { -- cgit v1.2.3