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 99... Zeile 99...
99
	 * Create database
99
	 * Create database
100
	 *
100
	 *
101
	 * @param	string	$db_name	(ignored)
101
	 * @param	string	$db_name	(ignored)
102
	 * @return	bool
102
	 * @return	bool
103
	 */
103
	 */
104
	public function create_database($db_name = '')
104
	public function create_database($db_name)
105
	{
105
	{
106
		// In SQLite, a database is created when you connect to the database.
106
		// In SQLite, a database is created when you connect to the database.
107
		// We'll return TRUE so that an error isn't generated
107
		// We'll return TRUE so that an error isn't generated
108
		return TRUE;
108
		return TRUE;
109
	}
109
	}
Zeile 114... Zeile 114...
114
	 * Drop database
114
	 * Drop database
115
	 *
115
	 *
116
	 * @param	string	$db_name	(ignored)
116
	 * @param	string	$db_name	(ignored)
117
	 * @return	bool
117
	 * @return	bool
118
	 */
118
	 */
119
	public function drop_database($db_name = '')
119
	public function drop_database($db_name)
120
	{
120
	{
121
		// In SQLite, a database is dropped when we delete a file
121
		// In SQLite, a database is dropped when we delete a file
122
		if (file_exists($this->db->database))
122
		if (file_exists($this->db->database))
123
		{
123
		{
124
			// We need to close the pseudo-connection first
124
			// We need to close the pseudo-connection first