summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/mysql
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-25 08:40:16 +0200
committeradmin <devnull@localhost>2006-09-25 08:40:16 +0200
commit4ceac2d4efa5a16486b6e97911bb32e261b9d648 (patch)
tree0861dd86129ec60d1214d2da8bbe37600bdb54ef /system/database/drivers/mysql
parent72496373008b263e098cf6082cdce1d47d01d3f1 (diff)
Diffstat (limited to 'system/database/drivers/mysql')
-rw-r--r--system/database/drivers/mysql/mysql_utility.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/system/database/drivers/mysql/mysql_utility.php b/system/database/drivers/mysql/mysql_utility.php
index 5bbf46810..23c4e094d 100644
--- a/system/database/drivers/mysql/mysql_utility.php
+++ b/system/database/drivers/mysql/mysql_utility.php
@@ -33,7 +33,7 @@ class CI_DB_mysql_utility extends CI_DB_utility {
*/
function create_database($name)
{
- return $this->db->query("CREATE DATABASE ".$this->db->_escape_table($name));
+ return $this->db->query("CREATE DATABASE ".$name);
}
// --------------------------------------------------------------------
@@ -47,7 +47,7 @@ class CI_DB_mysql_utility extends CI_DB_utility {
*/
function drop_database($name)
{
- return $this->db->query("DROP DATABASE ".$this->db->_escape_table($name));
+ return $this->db->query("DROP DATABASE ".$name);
}
// --------------------------------------------------------------------
@@ -76,6 +76,19 @@ class CI_DB_mysql_utility extends CI_DB_utility {
// --------------------------------------------------------------------
/**
+ * Drop Table
+ *
+ * @access public
+ * @return bool
+ */
+ function drop_table($table)
+ {
+ "DROP TABLE IF EXISTS ".$this->db->_escape_table($name);
+ }
+
+ // --------------------------------------------------------------------
+
+ /**
* Version number query string
*
* @access public