1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
\r
5 * An open source application development framework for PHP 4.3.2 or newer
\r
7 * @package CodeIgniter
\r
8 * @author ExpressionEngine Dev Team
\r
9 * @copyright Copyright (c) 2008, EllisLab, Inc.
\r
10 * @license http://codeigniter.com/user_guide/license.html
\r
11 * @link http://codeigniter.com
\r
12 * @since Version 1.0
\r
16 // ------------------------------------------------------------------------
\r
19 * ODBC Utility Class
\r
21 * @category Database
\r
22 * @author ExpressionEngine Dev Team
\r
23 * @link http://codeigniter.com/database/
\r
25 class CI_DB_odbc_utility extends CI_DB_utility {
\r
33 function _list_databases()
\r
35 // Not sure if ODBC lets you list all databases...
\r
36 if ($this->db->db_debug)
\r
38 return $this->db->display_error('db_unsuported_feature');
\r
43 // --------------------------------------------------------------------
\r
46 * Optimize table query
\r
48 * Generates a platform-specific query so that a table can be optimized
\r
51 * @param string the table name
\r
54 function _optimize_table($table)
\r
56 // Not a supported ODBC feature
\r
57 if ($this->db->db_debug)
\r
59 return $this->db->display_error('db_unsuported_feature');
\r
64 // --------------------------------------------------------------------
\r
67 * Repair table query
\r
69 * Generates a platform-specific query so that a table can be repaired
\r
72 * @param string the table name
\r
75 function _repair_table($table)
\r
77 // Not a supported ODBC feature
\r
78 if ($this->db->db_debug)
\r
80 return $this->db->display_error('db_unsuported_feature');
\r
85 // --------------------------------------------------------------------
\r
91 * @param array Preferences
\r
94 function _backup($params = array())
\r
96 // Currently unsupported
\r
97 return $this->db->display_error('db_unsuported_feature');
\r
102 * The functions below have been deprecated as of 1.6, and are only here for backwards
\r
103 * compatibility. They now reside in dbforge(). The use of dbutils for database manipulation
\r
104 * is STRONGLY discouraged in favour if using dbforge.
\r
112 * @param string the database name
\r
115 function _create_database()
\r
117 // ODBC has no "create database" command since it's
\r
118 // designed to connect to an existing database
\r
119 if ($this->db->db_debug)
\r
121 return $this->db->display_error('db_unsuported_feature');
\r
126 // --------------------------------------------------------------------
\r
132 * @param string the database name
\r
135 function _drop_database($name)
\r
137 // ODBC has no "drop database" command since it's
\r
138 // designed to connect to an existing database
\r
139 if ($this->db->db_debug)
\r
141 return $this->db->display_error('db_unsuported_feature');
\r
147 /* End of file odbc_utility.php */
\r
148 /* Location: ./system/database/drivers/odbc/odbc_utility.php */