Merge pull request #2343 from QOX/develop
Fixed problem for transaction test mode.
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 97021f1..9239dc1 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -816,7 +816,7 @@
}
// The query() function will set this flag to FALSE in the event that a query failed
- if ($this->_trans_status === FALSE)
+ if ($this->_trans_status === FALSE OR $this->_trans_failure === TRUE)
{
$this->trans_rollback();