Fix #5246
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 7efb373..0b13a2f 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -916,6 +916,7 @@
 
 		if ($this->_trans_begin())
 		{
+			$this->_trans_status = TRUE;
 			$this->_trans_depth++;
 			return TRUE;
 		}