public function create_database($db_name)
{
if ($this->_create_database === FALSE) {
return $this->db->db_debug ? $this->db->display_error('db_unsupported_feature') : FALSE;
} elseif (!$this->db->query(sprintf($this->_create_database, $db_name, $this->db->char_set, $this->db->dbcollat))) {
return $this->db->db_debug ? $this->db->display_error('db_unable_to_drop') : FALSE;
}
if (!empty($this->db->data_cache['db_names'])) {
$this->db->data_cache['db_names'][] = $db_name;
}
return TRUE;
}