odbc_utility.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. /**
  3. * CodeIgniter
  4. *
  5. * An open source application development framework for PHP 5.1.6 or newer
  6. *
  7. * @package CodeIgniter
  8. * @author ExpressionEngine Dev Team
  9. * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
  10. * @license http://codeigniter.com/user_guide/license.html
  11. * @link http://codeigniter.com
  12. * @since Version 1.0
  13. * @filesource
  14. */
  15. // ------------------------------------------------------------------------
  16. /**
  17. * ODBC Utility Class
  18. *
  19. * @category Database
  20. * @author ExpressionEngine Dev Team
  21. * @link http://codeigniter.com/database/
  22. */
  23. class CI_DB_odbc_utility extends CI_DB_utility {
  24. /**
  25. * List databases
  26. *
  27. * @access private
  28. * @return bool
  29. */
  30. function _list_databases()
  31. {
  32. // Not sure if ODBC lets you list all databases...
  33. if ($this->db->db_debug)
  34. {
  35. return $this->db->display_error('db_unsuported_feature');
  36. }
  37. return FALSE;
  38. }
  39. // --------------------------------------------------------------------
  40. /**
  41. * Optimize table query
  42. *
  43. * Generates a platform-specific query so that a table can be optimized
  44. *
  45. * @access private
  46. * @param string the table name
  47. * @return object
  48. */
  49. function _optimize_table($table)
  50. {
  51. // Not a supported ODBC feature
  52. if ($this->db->db_debug)
  53. {
  54. return $this->db->display_error('db_unsuported_feature');
  55. }
  56. return FALSE;
  57. }
  58. // --------------------------------------------------------------------
  59. /**
  60. * Repair table query
  61. *
  62. * Generates a platform-specific query so that a table can be repaired
  63. *
  64. * @access private
  65. * @param string the table name
  66. * @return object
  67. */
  68. function _repair_table($table)
  69. {
  70. // Not a supported ODBC feature
  71. if ($this->db->db_debug)
  72. {
  73. return $this->db->display_error('db_unsuported_feature');
  74. }
  75. return FALSE;
  76. }
  77. // --------------------------------------------------------------------
  78. /**
  79. * ODBC Export
  80. *
  81. * @access private
  82. * @param array Preferences
  83. * @return mixed
  84. */
  85. function _backup($params = array())
  86. {
  87. // Currently unsupported
  88. return $this->db->display_error('db_unsuported_feature');
  89. }
  90. }
  91. /* End of file odbc_utility.php */
  92. /* Location: ./system/database/drivers/odbc/odbc_utility.php */