From f43a8fb104152f9fc2953967efb01cf542c1b338 Mon Sep 17 00:00:00 2001 From: jerkob Date: Thu, 23 Jan 2020 18:48:28 -0500 Subject: Add a trans_depth function Enables retrieval of the current _trans_depth --- system/database/DB_driver.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'system/database') diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index b4f16b905..733522284 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -825,6 +825,18 @@ abstract class CI_DB_driver { { return $this->_trans_status; } + + // -------------------------------------------------------------------- + + /** + * Lets you retrieve the transaction depth + * + * @return int + */ + public function trans_depth() + { + return $this->_trans_depth; + } // -------------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b