mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Removed NO_AUTO_CREATE_USER from mysql strict to support MySQL 8 (#9668)
* Removed NO_AUTO_CREATE_USER from mysql strict * Fixed tests
This commit is contained in:
committed by
Tony Murray
parent
394c40e541
commit
f8cf6a93b3
@@ -95,7 +95,7 @@ class Eloquent
|
||||
{
|
||||
if (self::isConnected()) {
|
||||
if ($strict) {
|
||||
self::DB()->getPdo()->exec("SET sql_mode='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'");
|
||||
self::DB()->getPdo()->exec("SET sql_mode='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'");
|
||||
} else {
|
||||
self::DB()->getPdo()->exec("SET sql_mode=''");
|
||||
}
|
||||
|
Reference in New Issue
Block a user