mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix tests for MariaDB > 10.5.15 (#13829)
This commit is contained in:
@@ -114,7 +114,9 @@ class DBSetupTest extends DBTestCase
|
||||
$mode = $result->mode;
|
||||
|
||||
// NO_AUTO_CREATE_USER is removed in mysql 8
|
||||
$expected = ($vendor !== 'MariaDB' && version_compare($version, '8.0.0') >= 0)
|
||||
$expected = (
|
||||
($vendor !== 'MariaDB' && version_compare($version, '8.0.0') >= 0) ||
|
||||
($vendor == 'MariaDB' && version_compare($version, '10.5.15') >= 0))
|
||||
? 'ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'
|
||||
: 'ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
|
||||
|
||||
|
Reference in New Issue
Block a user