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:
authordd-han <han@dd-han.tw>2016-12-08 17:38:14 +0300
committerdd-han <han@dd-han.tw>2016-12-08 17:38:14 +0300
commit83aa7c9e73f40f3be3ab071dc2a73cfe41d18870 (patch)
tree85166721ae129022737a5e8281f16223598648cf /lib
parente5490e2a6afb4dce36d56971c9b97809a1f0f10a (diff)
fix SQL syntax error on MariaDB 10.0.27 and 10.1.19
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()) {