From 28239ad0146eccecc9f2ca81764ca5605b3c50bf Mon Sep 17 00:00:00 2001 From: Rick Ellis Date: Mon, 11 Jun 2007 04:26:39 +0000 Subject: --- system/database/DB_driver.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'system') diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 7ff33246a..8f238fc52 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -48,7 +48,7 @@ class CI_DB_driver { var $data_cache = array(); var $trans_enabled = TRUE; var $_trans_depth = 0; - var $_trans_failure = FALSE; // Used with transactions to determine if a rollback should occur + var $_trans_status = TRUE; // Used with transactions to determine if a rollback should occur var $cache_on = FALSE; var $cachedir = ''; var $cache_autodel = FALSE; @@ -273,7 +273,7 @@ class CI_DB_driver { if (FALSE === ($this->result_id = $this->simple_query($sql))) { // This will trigger a rollback if transactions are being used - $this->_trans_failure = TRUE; + $this->_trans_status = FALSE; if ($this->db_debug) { @@ -463,7 +463,7 @@ class CI_DB_driver { } // The query() function will set this flag to TRUE in the event that a query failed - if ($this->_trans_failure === TRUE) + if ($this->_trans_status === FALSE) { $this->trans_rollback(); @@ -488,7 +488,7 @@ class CI_DB_driver { */ function trans_status() { - return $this->_trans_failure; + return $this->_trans_status; } // -------------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b