summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
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());