Esempio n. 1
0
 /**
  * Drop database
  *
  * @param	string	the database name
  *		- not used in this driver, the current db is dropped
  * @return	bool
  */
 public function drop_database($db_name = '')
 {
     if (!ibase_drop_db($this->conn_id)) {
         return $this->db->db_debug ? $this->db->display_error('db_unable_to_drop') : FALSE;
     } elseif (!empty($this->db->data_cache['db_names'])) {
         $key = array_search(strtolower($this->db->database), array_map('strtolower', $this->db->data_cache['db_names']), TRUE);
         if ($key !== FALSE) {
             unset($this->db->data_cache['db_names'][$key]);
         }
     }
     return TRUE;
 }
Esempio n. 2
0
 /**
  * Drop database
  *
  * @param	string	the database name - not used in this driver 
  *	- the current db is dropped
  * @return	bool
  */
 protected function _drop_database($name = '')
 {
     return ibase_drop_db($this->conn_id);
 }