diff options
author | dd-han <han@dd-han.tw> | 2016-12-08 17:38:14 +0300 |
---|---|---|
committer | dd-han <han@dd-han.tw> | 2016-12-08 17:38:14 +0300 |
commit | 83aa7c9e73f40f3be3ab071dc2a73cfe41d18870 (patch) | |
tree | 85166721ae129022737a5e8281f16223598648cf /lib | |
parent | e5490e2a6afb4dce36d56971c9b97809a1f0f10a (diff) |
fix SQL syntax error on MariaDB 10.0.27 and 10.1.19
Diffstat (limited to 'lib')
-rw-r--r-- | lib/DatabaseStatistics.php | 2 |
1 files changed, 1 insertions, 1 deletions
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()) { |