Merge pull request #3778 from laf/validate-strict

Changed mysql strict from warn to fail
This commit is contained in:
Neil Lathwood 2016-07-06 15:20:45 +01:00 committed by GitHub
commit 1c377d1547

View File

@ -156,7 +156,7 @@ else {
// Test for MySQL Strict mode
$strict_mode = dbFetchCell("SELECT @@global.sql_mode");
if(strstr($strict_mode, 'STRICT_TRANS_TABLES')) {
print_warn('You have MySQL STRICT_TRANS_TABLES enabled, it is advisable to disable this until full support has been added: https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html');
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');
}
$tz = ini_get('date.timezone');