diff options
author | mattab <matthieu.aubry@gmail.com> | 2015-10-07 05:53:57 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2015-10-07 05:53:57 +0300 |
commit | e9b8b7feaf30fa1ef8b36fd3ce63e28a407b7def (patch) | |
tree | 236897b147b961d69f487b10f1608827ec411a06 /core | |
parent | 2829032bf3b95069713d0a85470f8d6d04131039 (diff) |
Remove STRICT_TRANS_TABLES SQL mode to prevent fatal error
We cannot let tracking fail under any circumstance, but with STRICT_TRANS_TABLES, when a plugin is disabled, and the column is NOT NULL, then tracking would fail.
Fixes #8853
Diffstat (limited to 'core')
-rw-r--r-- | core/Db.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Db.php b/core/Db.php index 8a18f558d8..12798d2ff5 100644 --- a/core/Db.php +++ b/core/Db.php @@ -33,7 +33,7 @@ use Piwik\Db\Adapter; */ class Db { - const SQL_MODE = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_ZERO_DATE,NO_ZERO_IN_DATE'; + const SQL_MODE = 'ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_ZERO_DATE,NO_ZERO_IN_DATE'; private static $connection = null; |