summaryrefslogtreecommitdiffstats
path: root/system/database/DB_utility.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-11 01:30:21 +0200
committeradmin <devnull@localhost>2006-10-11 01:30:21 +0200
commit1b0ab4665720446eee6b03f864bb5576e6065a4a (patch)
treeb7651bbe1190e02fb12788e0e3b4bcde9a4ad11f /system/database/DB_utility.php
parentf66de86a85676771d61759fb63e851fc496b0a3b (diff)
Diffstat (limited to 'system/database/DB_utility.php')
-rw-r--r--system/database/DB_utility.php8
1 files changed, 4 insertions, 4 deletions
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();
}
// ------------------------------------------------------