summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/database/DB.php b/system/database/DB.php
index 6930411c7..a91ca08fa 100644
--- a/system/database/DB.php
+++ b/system/database/DB.php
@@ -137,6 +137,11 @@ function &DB($params = '', $active_record_override = NULL)
$DB->initialize();
}
+ if (isset($params['stricton']) && $params['stricton'] == TRUE)
+ {
+ $DB->query('SET SESSION sql_mode="STRICT_ALL_TABLES"');
+ }
+
return $DB;
}