From 6cec6a58d993fb0b1beb5fac7ea0d1cb9769c0a4 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 25 Sep 2006 06:56:49 +0000 Subject: --- system/database/drivers/mysqli/mysqli_utility.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'system/database/drivers/mysqli/mysqli_utility.php') diff --git a/system/database/drivers/mysqli/mysqli_utility.php b/system/database/drivers/mysqli/mysqli_utility.php index ca8f3fe34..1775047ca 100644 --- a/system/database/drivers/mysqli/mysqli_utility.php +++ b/system/database/drivers/mysqli/mysqli_utility.php @@ -27,13 +27,13 @@ class CI_DB_mysqli_utility extends CI_DB_utility { /** * Create database * - * @access public + * @access private * @param string the database name * @return bool */ - function create_database($name) + function _create_database($name) { - return $this->db->query("CREATE DATABASE ".$name); + return "CREATE DATABASE ".$name; } // -------------------------------------------------------------------- @@ -83,7 +83,7 @@ class CI_DB_mysqli_utility extends CI_DB_utility { */ function drop_table($table) { - "DROP TABLE IF EXISTS ".$this->db->_escape_table($name); + return $this->db->query("DROP TABLE IF EXISTS ".$this->db->_escape_table($name)); } // -------------------------------------------------------------------- @@ -143,9 +143,7 @@ class CI_DB_mysqli_utility extends CI_DB_utility { */ function _field_data($table) { - $sql = "SELECT * FROM ".$this->db->_escape_table($table)." LIMIT 1"; - $query = $this->db->query($sql); - return $query->field_data(); + return "SELECT * FROM ".$this->db->_escape_table($table)." LIMIT 1"; } -- cgit v1.2.3-24-g4f1b