diff options
author | admin <devnull@localhost> | 2006-10-11 01:30:21 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-11 01:30:21 +0200 |
commit | 1b0ab4665720446eee6b03f864bb5576e6065a4a (patch) | |
tree | b7651bbe1190e02fb12788e0e3b4bcde9a4ad11f /system/database | |
parent | f66de86a85676771d61759fb63e851fc496b0a3b (diff) |
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/DB_driver.php | 4 | ||||
-rw-r--r-- | system/database/DB_utility.php | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 99c95a6f2..6da645a38 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -960,13 +960,13 @@ class CI_DB_driver { * @access public * @return void */ - function cache_delete() + function cache_delete($segment_one = '', $segment_two = '') { if ( ! $this->_cache_init()) { return FALSE; } - return $this->CACHE->delete(); + return $this->CACHE->delete($segment_one, $segment_two); } // -------------------------------------------------------------------- diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php index 51e43a7c8..13fcaa5c9 100644 --- a/system/database/DB_utility.php +++ b/system/database/DB_utility.php @@ -37,7 +37,7 @@ class CI_DB_utility { { // Assign the main database object to $this->db $CI =& get_instance(); - $this->CI =& $obj->db; + $this->db =& $CI->db; log_message('debug', "Database Utility Class Initialized"); } @@ -100,7 +100,7 @@ class CI_DB_utility { return $this->data_cache['db_names']; } - $query = $this->db->query($this->_list_database()); + $query = $this->db->query($this->_list_databases()); $dbs = array(); if ($query->num_rows() > 0) { @@ -147,7 +147,7 @@ class CI_DB_utility { function optimize_database() { $result = array(); - foreach ($this->list_tables() as $table_name) + foreach ($this->db->list_tables() as $table_name) { $sql = $this->_optimize_table($table_name); @@ -356,7 +356,7 @@ class CI_DB_utility { // If no table names were submitted we'll fetch the entire table list if (count($prefs['tables']) == 0) { - $prefs['tables'] = $this->list_tables(); + $prefs['tables'] = $this->db->list_tables(); } // ------------------------------------------------------ |