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

github.com/nextcloud/survey_client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2017-01-18 18:44:24 +0300
committerGitHub <noreply@github.com>2017-01-18 18:44:24 +0300
commit8b04ba1ed92441ad581859ad250fdcdaaa059e8b (patch)
tree18fa698aa0b92b2ac500a222f041fd4436dd5e5a
parenta3917a6f9614dfc36c0b6b7095d28c5cd7f4ed99 (diff)
parent642178f1b94e5770df9e76caa80e21e47ce57071 (diff)
Merge pull request #51 from nextcloud/backport-49-fix-size-check-with-dash-in-db-name-10v10.0.6RC1v10.0.6v10.0.5RC2v10.0.5RC1v10.0.5v10.0.4RC1v10.0.4stable10
[stable10] Fix problem when checking size with dash in DB name
-rw-r--r--lib/Categories/Database.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Categories/Database.php b/lib/Categories/Database.php
index 017f7e8..959bbdb 100644
--- a/lib/Categories/Database.php
+++ b/lib/Categories/Database.php
@@ -122,7 +122,7 @@ class Database implements ICategory {
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()) {