blob: 424958b4310a6ecb142379b22ce0ffc4eb52f2ed [file] [log] [blame]
Razican114ab092011-04-25 17:26:45 +02001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Derek Allard2067d1a2008-11-13 22:59:24 +00002/**
3 * CodeIgniter
4 *
Greg Aker741de1c2010-11-10 14:52:57 -06005 * An open source application development framework for PHP 5.1.6 or newer
Derek Allard2067d1a2008-11-13 22:59:24 +00006 *
7 * @package CodeIgniter
8 * @author ExpressionEngine Dev Team
Greg Aker0711dc82011-01-05 10:49:40 -06009 * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
Derek Allard2067d1a2008-11-13 22:59:24 +000010 * @license http://codeigniter.com/user_guide/license.html
11 * @link http://codeigniter.com
12 * @since Version 1.0
13 * @filesource
14 */
15
16// ------------------------------------------------------------------------
17
18/**
19 * ODBC Utility Class
20 *
21 * @category Database
22 * @author ExpressionEngine Dev Team
23 * @link http://codeigniter.com/database/
24 */
25class CI_DB_odbc_utility extends CI_DB_utility {
26
27 /**
28 * List databases
29 *
30 * @access private
31 * @return bool
32 */
33 function _list_databases()
34 {
Barry Mienydd671972010-10-04 16:33:58 +020035 // Not sure if ODBC lets you list all databases...
Derek Allard2067d1a2008-11-13 22:59:24 +000036 if ($this->db->db_debug)
37 {
38 return $this->db->display_error('db_unsuported_feature');
39 }
40 return FALSE;
41 }
42
43 // --------------------------------------------------------------------
44
45 /**
46 * Optimize table query
47 *
48 * Generates a platform-specific query so that a table can be optimized
49 *
50 * @access private
51 * @param string the table name
52 * @return object
53 */
54 function _optimize_table($table)
55 {
Barry Mienydd671972010-10-04 16:33:58 +020056 // Not a supported ODBC feature
Derek Allard2067d1a2008-11-13 22:59:24 +000057 if ($this->db->db_debug)
58 {
59 return $this->db->display_error('db_unsuported_feature');
60 }
61 return FALSE;
62 }
63
64 // --------------------------------------------------------------------
65
66 /**
67 * Repair table query
68 *
69 * Generates a platform-specific query so that a table can be repaired
70 *
71 * @access private
72 * @param string the table name
73 * @return object
74 */
75 function _repair_table($table)
76 {
Barry Mienydd671972010-10-04 16:33:58 +020077 // Not a supported ODBC feature
Derek Allard2067d1a2008-11-13 22:59:24 +000078 if ($this->db->db_debug)
79 {
80 return $this->db->display_error('db_unsuported_feature');
81 }
82 return FALSE;
83 }
84
85 // --------------------------------------------------------------------
86
87 /**
88 * ODBC Export
89 *
90 * @access private
91 * @param array Preferences
92 * @return mixed
93 */
94 function _backup($params = array())
95 {
96 // Currently unsupported
97 return $this->db->display_error('db_unsuported_feature');
98 }
Derek Allard2067d1a2008-11-13 22:59:24 +000099
Derek Allard2067d1a2008-11-13 22:59:24 +0000100}
101
102/* End of file odbc_utility.php */
Derek Jonesa3ffbbb2008-05-11 18:18:29 +0000103/* Location: ./system/database/drivers/odbc/odbc_utility.php */