summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/mysqli/mysqli_utility.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/database/drivers/mysqli/mysqli_utility.php')
-rw-r--r--system/database/drivers/mysqli/mysqli_utility.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/system/database/drivers/mysqli/mysqli_utility.php b/system/database/drivers/mysqli/mysqli_utility.php
index 14a6ef8cf..ca8f3fe34 100644
--- a/system/database/drivers/mysqli/mysqli_utility.php
+++ b/system/database/drivers/mysqli/mysqli_utility.php
@@ -33,7 +33,7 @@ class CI_DB_mysqli_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_mysqli_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);
}
// --------------------------------------------------------------------
@@ -72,6 +72,19 @@ class CI_DB_mysqli_utility extends CI_DB_utility {
return $dbs;
}
+
+ // --------------------------------------------------------------------
+
+ /**
+ * Drop Table
+ *
+ * @access public
+ * @return bool
+ */
+ function drop_table($table)
+ {
+ "DROP TABLE IF EXISTS ".$this->db->_escape_table($name);
+ }
// --------------------------------------------------------------------