The versions 10.5.12 and 10.5.13 (10.5.14 was never released) contain a bug that breaks window functions when the SQL mode `ONLY_FULL_GROUP_BY` is set.
$sqlVersion = WCF::getDB()->getVersion();
$compareSQLVersion = \preg_replace('/^(\d+\.\d+\.\d+).*$/', '\\1', $sqlVersion);
if (\stripos($sqlVersion, 'MariaDB') !== false) {
- $neededSqlVersion = '10.5.12';
+ $neededSqlVersion = '10.5.15';
$sqlFork = 'MariaDB';
} else {
$sqlFork = 'MySQL';
if (\stripos($sqlVersion, 'MariaDB') !== false) {
$databaseName = "MariaDB {$compareSQLVersion}";
- $expectedVersion = '10.5.12';
+ $expectedVersion = '10.5.15';
$alternativeDatabase = 'MySQL 8.0.30+';
} else {
$databaseName = "MySQL {$compareSQLVersion}";
$expectedVersion = $databaseName = "MariaDB {$compareSQLVersion}";
$expectedVersion = '8.0.30';
- $alternativeDatabase = 'MariaDB 10.5.12+';
+ $alternativeDatabase = 'MariaDB 10.5.15+';
}
$result = (\version_compare(
'8' => '8.0.30',
],
'mariadb' => [
- '10' => '10.5.12',
+ '10' => '10.5.15',
],
];
$sqlVersion = $db->getVersion();
$compareSQLVersion = \preg_replace('/^(\d+\.\d+\.\d+).*$/', '\\1', $sqlVersion);
if (\stripos($sqlVersion, 'MariaDB')) {
- if (!(\version_compare($compareSQLVersion, '10.5.12') >= 0)) {
- throw new SystemException("Insufficient MariaDB version '" . $compareSQLVersion . "'. Version '10.5.12' or greater is needed.");
+ if (!(\version_compare($compareSQLVersion, '10.5.15') >= 0)) {
+ throw new SystemException("Insufficient MariaDB version '" . $compareSQLVersion . "'. Version '10.5.15' or greater is needed.");
}
} else {
if (!(\version_compare($compareSQLVersion, '8.0.30') >= 0)) {
'en' => 'MySQL Requirements',
],
'mysql_version' => [
- 'de' => 'Bitte stellen Sie sicher, dass MySQL 8.0.30+ oder MariaDB 10.5.12+ mit InnoDB-Unterstützung vorhanden ist.',
- 'en' => 'Please make sure that MySQL 8.0.30+ or MariaDB 10.5.12+, with InnoDB support is available.',
+ 'de' => 'Bitte stellen Sie sicher, dass MySQL 8.0.30+ oder MariaDB 10.5.15+ mit InnoDB-Unterstützung vorhanden ist.',
+ 'en' => 'Please make sure that MySQL 8.0.30+ or MariaDB 10.5.15+, with InnoDB support is available.',
],
'result' => [
'de' => 'Ergebnis',