summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-27 02:31:22 +0200
committeradmin <devnull@localhost>2006-09-27 02:31:22 +0200
commite5bb936f808bfd39a6ba8cbe1fc2ddbcf9bf502f (patch)
tree20dd6d9775c9c2a4e097278f3cf659c42e8507f5 /system/database
parente1770339a3c89d53b99529ae6a639e5c3dd0fd66 (diff)
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_utility.php5
-rw-r--r--system/database/drivers/mysql/mysql_utility.php2
2 files changed, 4 insertions, 3 deletions
diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php
index 281a3b87d..a2469d059 100644
--- a/system/database/DB_utility.php
+++ b/system/database/DB_utility.php
@@ -191,8 +191,7 @@ class CI_DB_utility {
* Optimize Database
*
* @access public
- * @param string the table name
- * @return bool
+ * @return array
*/
function optimize_database()
{
@@ -207,6 +206,8 @@ class CI_DB_utility {
}
$query = $this->db->query($sql);
+
+ // Build the result array...
$res = current($query->result_array());
$key = str_replace($this->db->database.'.', '', current($res));
$keys = array_keys($res);
diff --git a/system/database/drivers/mysql/mysql_utility.php b/system/database/drivers/mysql/mysql_utility.php
index 9ba4a79c5..a81936c56 100644
--- a/system/database/drivers/mysql/mysql_utility.php
+++ b/system/database/drivers/mysql/mysql_utility.php
@@ -12,7 +12,7 @@
* @since Version 1.0
* @filesource
*/
-
+
// ------------------------------------------------------------------------
/**