summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/cubrid/cubrid_utility.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-02-15 13:35:11 +0100
committerAndrey Andreev <narf@bofh.bg>2012-02-15 13:35:11 +0100
commit394a3f171c72176d3e31a2562e604a26a703f957 (patch)
treed1cb8734fb28572b346797ddc816c882d2a00eca /system/database/drivers/cubrid/cubrid_utility.php
parentcac407d6399e9325454b48418cf3fce873ce1b14 (diff)
Add improvements from @CUBRID's implementation
Diffstat (limited to 'system/database/drivers/cubrid/cubrid_utility.php')
-rw-r--r--system/database/drivers/cubrid/cubrid_utility.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/system/database/drivers/cubrid/cubrid_utility.php b/system/database/drivers/cubrid/cubrid_utility.php
index dbfbe5f6b..ab9056ffb 100644
--- a/system/database/drivers/cubrid/cubrid_utility.php
+++ b/system/database/drivers/cubrid/cubrid_utility.php
@@ -21,7 +21,7 @@
* @copyright Copyright (c) 2008 - 2012, EllisLab, Inc. (http://ellislab.com/)
* @license http://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* @link http://codeigniter.com
- * @since Version 1.0
+ * @since Version 3.0
* @filesource
*/
@@ -39,14 +39,9 @@ class CI_DB_cubrid_utility extends CI_DB_utility {
*
* @return array
*/
- public function _list_databases()
+ public function list_databases()
{
- // CUBRID does not allow to see the list of all databases on the
- // server. It is the way its architecture is designed. Every
- // database is independent and isolated.
- // For this reason we can return only the name of the currect
- // connected database.
- return "SELECT '".$this->database."'";
+ return $this->data_cache['db_names'] = cubrid_list_dbs($this->db->conn_id);
}
// --------------------------------------------------------------------