Skip to content

Commit

Permalink
Fix for #26526
Browse files Browse the repository at this point in the history
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"

Signed-off-by: Tobias <scharft@hochschule-trier.de>
  • Loading branch information
ZitronePlus committed Jul 1, 2021
2 parents 75f7287 + 1d0a40a commit 7d0dd31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/settings/lib/SetupChecks/SupportedDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function check() {
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']);
Expand Down

0 comments on commit 7d0dd31

Please sign in to comment.