summaryrefslogtreecommitdiffstats
path: root/inc/database.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/database.inc.php')
-rw-r--r--inc/database.inc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/database.inc.php b/inc/database.inc.php
index 7d9cbce3..eddd4faf 100644
--- a/inc/database.inc.php
+++ b/inc/database.inc.php
@@ -41,6 +41,7 @@ class Database
Util::traceError('Connecting to the local database failed: ' . $e->getMessage());
}
if (CONFIG_DEBUG) {
+ Database::exec("SET sql_mode='STRICT_TRANS_TABLES'");
register_shutdown_function(function() {
self::examineLoggedQueries();
});