Browse files

Improved the function. Now calling API instead of envoking an SQL req…

…uest.
  • Loading branch information...
1 parent c5e9c90 commit 7b23535831f354672dfa3fab74d610864b51f04a @kadishmal kadishmal committed Feb 15, 2012
Showing with 1 addition and 10 deletions.
  1. +1 −10 system/database/drivers/cubrid/cubrid_utility.php
View
11 system/database/drivers/cubrid/cubrid_utility.php
@@ -48,16 +48,7 @@ function list_databases()
return $this->data_cache['db_names'];
}
- $query = $this->db->query('SELECT LIST_DBS()');
- $dbs = array();
- if ($query->num_rows() > 0)
- {
- // CUBRID returns a list of databases in one row separated
- // by spaces.
- $dbs = explode(' ', current(current($query->result_array())));
- }
-
- $this->data_cache['db_names'] = $dbs;
+ $this->data_cache['db_names'] = cubrid_list_dbs($this->db->conn_id);
return $this->data_cache['db_names'];
}

0 comments on commit 7b23535

Please sign in to comment.