diff options
author | Björn Schießle <bjoern@schiessle.org> | 2017-01-18 18:45:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-18 18:45:21 +0300 |
commit | 068b42805ae01148ba25ec878f43019be9ac1112 (patch) | |
tree | ff90389efb63ed5d726c0fd8f9f25e54128fccc6 | |
parent | 81c04e85be60f977f409fc8ab95c435b0e4d8a73 (diff) | |
parent | 00e8d7ef80e6f6bd82bdb1173cadf08e6b74aced (diff) |
Merge pull request #78 from nextcloud/backport-65-10v10.0.6RC1v10.0.6v10.0.5RC2v10.0.5RC1v10.0.5v10.0.4RC1v10.0.4stable10
[stable10] fix SQL syntax error on MariaDB 10.0.27 and 10.1.19
-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 b1a663c..a2e79cc 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()) { |