summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2007-06-11 06:26:39 +0200
committerRick Ellis <rick.ellis@ellislab.com>2007-06-11 06:26:39 +0200
commit28239ad0146eccecc9f2ca81764ca5605b3c50bf (patch)
tree2a4b23ea022df3454e02fadb68961bb8e8136a44 /system/database
parente6b4a80ed09aa9d171db6abf2af2bca3cbac4945 (diff)
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_driver.php8
1 files changed, 4 insertions, 4 deletions
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;
}
// --------------------------------------------------------------------