Changeset 658 for trunk/system/libraries/Database.php
- Timestamp:
- 10/05/2007 01:15:08 AM (14 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Database.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Database.php
r655 r658 30 30 class Database_Core { 31 31 32 // Global benchmark 33 public static $benchmarks = array(); 34 32 35 // Configuration 33 protected $config = array36 protected $config = array 34 37 ( 38 'show_errors' => TRUE, 39 'benchmark' => TRUE, 40 'persistent' => FALSE, 35 41 'connection' => '', 36 'persistent' => FALSE,37 'show_errors' => TRUE,38 42 'character_set' => 'utf8', 39 'table_prefix' => '' 43 'table_prefix' => '', 44 'object' => TRUE 40 45 ); 41 46 … … 59 64 protected $connected = FALSE; 60 65 protected $last_query = ''; 61 public $benchmark = array();62 66 63 67 /** … … 474 478 $stop = microtime(TRUE); 475 479 476 // benchmark the query 477 $this->benchmark[] = array('query' => $sql, 'time' => $stop - $start); 480 if ($this->config['benchmark'] == TRUE) 481 { 482 // Benchmark the query 483 self::$benchmarks[] = array('query' => $sql, 'time' => $stop - $start); 484 } 478 485 479 486 $this->reset_select();
