summaryrefslogtreecommitdiffstats
path: root/user_guide/database
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide/database')
-rw-r--r--user_guide/database/transactions.html15
1 files changed, 11 insertions, 4 deletions
diff --git a/user_guide/database/transactions.html b/user_guide/database/transactions.html
index cdb95065d..b1187a048 100644
--- a/user_guide/database/transactions.html
+++ b/user_guide/database/transactions.html
@@ -96,6 +96,17 @@ $this->db->query('AND YET ANOTHER QUERY...');<br />
of any given query.</p>
+<h2>Strict Mode</h2>
+
+<p>By default CodeIgniter runs all transactions in <dfn>Strict Mode</dfn>. When strict mode is enabled, if you are running multiple groups of
+transactions, if one group fails all groups will be rolled back. If strict mode is disabled, each group is treated independently, meaning
+a failure of one group will not affect any others.</p>
+
+<p>Strict Mode can be disabled as follows:</p>
+
+<code>$this->db->trans_strict(FALSE);</code>
+
+
<h2>Managing Errors</h2>
<p>If you have error reporting enabled in your <dfn>config/database.php</dfn> file you'll see a standard error message if the commit was unsuccessful. If debugging is turned off, you can
@@ -171,10 +182,6 @@ else<br />
-
-
-
-
</div>
<!-- END CONTENT -->