diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-11-23 10:58:02 +0100 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-11-23 10:58:02 +0100 |
commit | c72e172f158747b75ee524b46f5819c4bf3d0eaa (patch) | |
tree | f24eee345160ecbb6f898c49e396c486dd518411 /system | |
parent | b25bf9db4af963269362e16cec0a99326c4439ad (diff) | |
parent | 66970cbc04f46072452b60a375c17610ae62b599 (diff) |
Merge pull request #691 from jerkob/develop
Updated trans_start() and trans_complete() so _trans_depth increments.
Diffstat (limited to 'system')
-rw-r--r-- | system/database/DB_driver.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index dd1b5677a..cc40ba48a 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -522,6 +522,7 @@ class CI_DB_driver { } $this->trans_begin($test_mode); + $this->_trans_depth += 1; } // -------------------------------------------------------------------- @@ -545,6 +546,10 @@ class CI_DB_driver { $this->_trans_depth -= 1; return TRUE; } + else + { + $this->_trans_depth = 0; + } // The query() function will set this flag to FALSE in the event that a query failed if ($this->_trans_status === FALSE) |