change validate to check if sql_mode is blank (#5981)

This commit is contained in:
Neil Lathwood
2017-02-23 23:02:51 +00:00
committed by GitHub
parent 80093d3934
commit 16c4425469

View File

@@ -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');