mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
change validate to check if sql_mode is blank (#5981)
This commit is contained in:
@@ -164,7 +164,12 @@ if (mysqli_connect_error()) {
|
||||
// Test for MySQL Strict mode
|
||||
$strict_mode = dbFetchCell("SELECT @@global.sql_mode");
|
||||
if (strstr($strict_mode, 'STRICT_TRANS_TABLES')) {
|
||||
print_fail('You have MySQL STRICT_TRANS_TABLES enabled, please disable this until full support has been added: https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html');
|
||||
//FIXME - Come back to this once other MySQL modes are fixed
|
||||
//print_fail('You have MySQL STRICT_TRANS_TABLES enabled, please disable this until full support has been added: https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html');
|
||||
}
|
||||
|
||||
if (empty($strict_mode) === false) {
|
||||
print_fail("You have not set sql_mode='' in your mysql config");
|
||||
}
|
||||
|
||||
$ini_tz = ini_get('date.timezone');
|
||||
|
||||
Reference in New Issue
Block a user