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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZitronePlus <tobiasscharf92@gmail.com>2021-06-30 15:52:48 +0300
committerGitHub <noreply@github.com>2021-06-30 15:52:48 +0300
commit1d0a40a4a6a89971555a1e23a9832d69aad46d7e (patch)
treeac2205e23676a495c6d92bf3c2cf18969dc0439e /apps/settings/lib/SetupChecks
parent75f7287b5ed7251599fd6c67ff3ae319f6a3dfc2 (diff)
Fix for #26526
fix for sql query replaced double quotes with single quotes. Query should now also work for dbs with sql_mode including "ANSI" and "ANSI_QUOTES"
Diffstat (limited to 'apps/settings/lib/SetupChecks')
-rw-r--r--apps/settings/lib/SetupChecks/SupportedDatabase.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/SetupChecks/SupportedDatabase.php b/apps/settings/lib/SetupChecks/SupportedDatabase.php
index 1684567609b..089fb69bbc9 100644
--- a/apps/settings/lib/SetupChecks/SupportedDatabase.php
+++ b/apps/settings/lib/SetupChecks/SupportedDatabase.php
@@ -63,7 +63,7 @@ class SupportedDatabase {
case MySQL57Platform::class: # extends MySQLPlatform
case MariaDb1027Platform::class: # extends MySQLPlatform
case MySQLPlatform::class:
- $result = $this->connection->prepare('SHOW VARIABLES LIKE "version";');
+ $result = $this->connection->prepare("SHOW VARIABLES LIKE 'version';");
$result->execute();
$row = $result->fetch();
$version = strtolower($row['Value']);