sql = new $class; } // -------------------------------------------------------------------------- /** * Doesn't apply to ODBC */ public function switch_db($name) { return FALSE; } // -------------------------------------------------------------------------- /** * List tables for the current database * * @return mixed */ public function get_tables() { //Not possible reliably with this driver return FALSE; } // -------------------------------------------------------------------------- /** * Not applicable to ODBC * * @return FALSE */ public function get_dbs() { return FALSE; } // -------------------------------------------------------------------------- /** * Not applicable to ODBC * * @return FALSE */ public function get_views() { return FALSE; } // -------------------------------------------------------------------------- /** * Not applicable to ODBC * * @return FALSE */ public function get_sequences() { return FALSE; } // -------------------------------------------------------------------------- /** * Not applicable to ODBC * * @return FALSE */ public function get_functions() { return FALSE; } // -------------------------------------------------------------------------- /** * Not applicable to ODBC * * @return FALSE */ public function get_procedures() { return FALSE; } // -------------------------------------------------------------------------- /** * Not applicable to ODBC * * @return FALSE */ public function get_triggers() { return FALSE; } // -------------------------------------------------------------------------- /** * List system tables for the current database/connection * * @return array */ public function get_system_tables() { //No way of determining for ODBC return array(); } // -------------------------------------------------------------------------- /** * Empty the current database * * @return void */ public function truncate($table) { $sql = "DELETE FROM {$table}"; $this->query($sql); } // -------------------------------------------------------------------------- /** * Return the number of rows returned for a SELECT query * * @return int */ public function num_rows() { // @TODO: Implement } // -------------------------------------------------------------------------- /** * Create an SQL backup file for the current database's structure * * @return string */ public function backup_structure() { // Not applicable to ODBC return ''; } // -------------------------------------------------------------------------- /** * Create an SQL backup file for the current database's data * * @return string */ public function backup_data() { // Not applicable to ODBC return ''; } } // End of odbc.php