diff --git a/system/database/drivers/postgre/postgre_utility.php b/system/database/drivers/postgre/postgre_utility.php
index 7bb210a..8e51623 100644
--- a/system/database/drivers/postgre/postgre_utility.php
+++ b/system/database/drivers/postgre/postgre_utility.php
@@ -28,13 +28,13 @@
/**
* 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;
}
// --------------------------------------------------------------------
@@ -84,7 +84,7 @@
*/
function drop_table($table)
{
- "DROP TABLE ".$this->db->_escape_table($name)." CASCADE";
+ return $this->db->query("DROP TABLE ".$this->db->_escape_table($name)." CASCADE");
}
// --------------------------------------------------------------------
@@ -144,9 +144,7 @@
*/
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";
}