Subversion-Projekte lars-tiefland.ci

Revision

Revision 68 | Revision 2049 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 68 Revision 1257
Zeile 73... Zeile 73...
73
	 * Create database
73
	 * Create database
74
	 *
74
	 *
75
	 * @param	string	$db_name	(ignored)
75
	 * @param	string	$db_name	(ignored)
76
	 * @return	bool
76
	 * @return	bool
77
	 */
77
	 */
78
	public function create_database($db_name = '')
78
	public function create_database($db_name)
79
	{
79
	{
80
		// In SQLite, a database is created when you connect to the database.
80
		// In SQLite, a database is created when you connect to the database.
81
		// We'll return TRUE so that an error isn't generated
81
		// We'll return TRUE so that an error isn't generated
82
		return TRUE;
82
		return TRUE;
83
	}
83
	}
Zeile 88... Zeile 88...
88
	 * Drop database
88
	 * Drop database
89
	 *
89
	 *
90
	 * @param	string	$db_name	(ignored)
90
	 * @param	string	$db_name	(ignored)
91
	 * @return	bool
91
	 * @return	bool
92
	 */
92
	 */
93
	public function drop_database($db_name = '')
93
	public function drop_database($db_name)
94
	{
94
	{
95
		if ( ! file_exists($this->db->database) OR ! @unlink($this->db->database))
95
		if ( ! file_exists($this->db->database) OR ! @unlink($this->db->database))
96
		{
96
		{
97
			return ($this->db->db_debug) ? $this->db->display_error('db_unable_to_drop') : FALSE;
97
			return ($this->db->db_debug) ? $this->db->display_error('db_unable_to_drop') : FALSE;
98
		}
98
		}