diff options
author | admin <devnull@localhost> | 2006-09-30 21:24:45 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-30 21:24:45 +0200 |
commit | 3dd978f680076be842bfcb5c9e2cbf35b926373b (patch) | |
tree | e4cd05724744ee70eb497118692581e750539548 /system/database/drivers/odbc/odbc_driver.php | |
parent | 3ed8c51254a5b26d951fa675802fcf69adf9638e (diff) |
Diffstat (limited to 'system/database/drivers/odbc/odbc_driver.php')
-rw-r--r-- | system/database/drivers/odbc/odbc_driver.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/system/database/drivers/odbc/odbc_driver.php b/system/database/drivers/odbc/odbc_driver.php index cdde2e2ea..0f002cc1b 100644 --- a/system/database/drivers/odbc/odbc_driver.php +++ b/system/database/drivers/odbc/odbc_driver.php @@ -259,6 +259,39 @@ class CI_DB_odbc_driver extends CI_DB { $row = $query->row(); return $row->numrows; } + + // -------------------------------------------------------------------- + + /** + * List databases + * + * @access private + * @return bool + */ + function _list_databases() + { + // Not sure if ODBC lets you list all databases... + if ($this->db_debug) + { + return $this->display_error('db_unsuported_feature'); + } + return FALSE; + } + + // -------------------------------------------------------------------- + + /** + * Show table query + * + * Generates a platform-specific query string so that the table names can be fetched + * + * @access private + * @return string + */ + function _list_tables() + { + return "SHOW TABLES FROM `".$this->database."`"; + } // -------------------------------------------------------------------- |