mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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"
This commit is contained in:
parent
75f7287b5e
commit
1d0a40a4a6
1 changed files with 1 additions and 1 deletions
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue