Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…uest.
  • Loading branch information...
commit 7b23535831f354672dfa3fab74d610864b51f04a 1 parent c5e9c90
@kadishmal kadishmal authored
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'];
}
Please sign in to comment.
Something went wrong with that request. Please try again.