diff options
author | ZitronePlus <tobiasscharf92@gmail.com> | 2021-06-30 14:52:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-30 14:52:48 +0200 |
commit | 1d0a40a4a6a89971555a1e23a9832d69aad46d7e (patch) | |
tree | ac2205e23676a495c6d92bf3c2cf18969dc0439e /apps/settings | |
parent | 75f7287b5ed7251599fd6c67ff3ae319f6a3dfc2 (diff) | |
download | nextcloud-server-1d0a40a4a6a89971555a1e23a9832d69aad46d7e.tar.gz nextcloud-server-1d0a40a4a6a89971555a1e23a9832d69aad46d7e.zip |
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')
-rw-r--r-- | apps/settings/lib/SetupChecks/SupportedDatabase.php | 2 |
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']); |