summaryrefslogtreecommitdiffstats
path: root/user_guide/database
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-05-12 20:16:30 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-05-12 20:16:30 +0200
commit2d2b2b9d6b158007c3a67e91486cc392f3a9fe6f (patch)
tree97091c4a07a26d8d0b0250ad3c34451420b7d6e8 /user_guide/database
parent53437de1f94dd4c0ab270f0c6d2309344d323d9e (diff)
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 -->