summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2007-07-17 23:40:44 +0200
committerRick Ellis <rick.ellis@ellislab.com>2007-07-17 23:40:44 +0200
commit409904637cd661be6ceccb59af1046468da09802 (patch)
tree10aa3ef6bf5ef5ddae321841cdd6bd11c3a4e251 /system/database
parent6159d1dd0945490d1425ae3269dc3172680a3c91 (diff)
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_driver.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 381b70f42..ee965b74c 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -44,6 +44,7 @@ class CI_DB_driver {
var $benchmark = 0;
var $query_count = 0;
var $bind_marker = '?';
+ var $save_queries = TRUE;
var $queries = array();
var $data_cache = array();
var $trans_enabled = TRUE;
@@ -264,7 +265,10 @@ class CI_DB_driver {
}
// Save the query for debugging
- $this->queries[] = $sql;
+ if ($this->save_queries == TRUE)
+ {
+ $this->queries[] = $sql;
+ }
// Start the Query Timer
$time_start = list($sm, $ss) = explode(' ', microtime());