From 2d2b2b9d6b158007c3a67e91486cc392f3a9fe6f Mon Sep 17 00:00:00 2001 From: Rick Ellis Date: Mon, 12 May 2008 18:16:30 +0000 Subject: --- user_guide/database/transactions.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'user_guide/database') 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...');
of any given query.

+

Strict Mode

+ +

By default CodeIgniter runs all transactions in Strict Mode. 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.

+ +

Strict Mode can be disabled as follows:

+ +$this->db->trans_strict(FALSE); + +

Managing Errors

If you have error reporting enabled in your config/database.php 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
- - - - -- cgit v1.2.3-24-g4f1b