diff options
author | Simon Rettberg | 2020-04-27 13:32:13 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-04-27 13:32:13 +0200 |
commit | 5797dca3f58c947414504b7243755f914d4c9972 (patch) | |
tree | 540ff1a6102b6c463a24395afda2e2ee5f190fe6 /inc/database.inc.php | |
parent | [statistics] Track CPU temperature as well (diff) | |
download | slx-admin-5797dca3f58c947414504b7243755f914d4c9972.tar.gz slx-admin-5797dca3f58c947414504b7243755f914d4c9972.tar.xz slx-admin-5797dca3f58c947414504b7243755f914d4c9972.zip |
[inc/Database] Force strict mode with CONFIG_DEBUG
Diffstat (limited to 'inc/database.inc.php')
-rw-r--r-- | inc/database.inc.php | 1 |
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(); }); |