Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-12-21 10:46:59 +0300
committerGitHub <noreply@github.com>2016-12-21 10:46:59 +0300
commit0f6e2beed3ee82a6dc3547d221eb30c02b314538 (patch)
tree6dd8ef7b3d55185ea219e668368e393ccaa39724 /lib
parent4fc1d232e41ac43fd6f680d830a3858a7ef40196 (diff)
parent96736dc01dc324cd35f17ad549ccc6798066997d (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.php2
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()) {