Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2015-10-07 05:53:57 +0300
committermattab <matthieu.aubry@gmail.com>2015-10-07 05:53:57 +0300
commite9b8b7feaf30fa1ef8b36fd3ce63e28a407b7def (patch)
tree236897b147b961d69f487b10f1608827ec411a06 /core
parent2829032bf3b95069713d0a85470f8d6d04131039 (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.php2
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;