From 1d0a40a4a6a89971555a1e23a9832d69aad46d7e Mon Sep 17 00:00:00 2001 From: ZitronePlus Date: Wed, 30 Jun 2021 14:52:48 +0200 Subject: 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" --- apps/settings/lib/SetupChecks/SupportedDatabase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/settings/lib/SetupChecks') 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']); -- cgit v1.2.3