diff options
author | Joas Schilling <coding@schilljs.com> | 2016-12-21 10:46:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-21 10:46:59 +0300 |
commit | 0f6e2beed3ee82a6dc3547d221eb30c02b314538 (patch) | |
tree | 6dd8ef7b3d55185ea219e668368e393ccaa39724 /lib | |
parent | 4fc1d232e41ac43fd6f680d830a3858a7ef40196 (diff) | |
parent | 96736dc01dc324cd35f17ad549ccc6798066997d (diff) |
Merge pull request #65 from dd-han/fix-SQL
fix SQL syntax error on newer MariaDB
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()) { |