summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/postgre/postgre_utility.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-25 08:56:49 +0200
committeradmin <devnull@localhost>2006-09-25 08:56:49 +0200
commit6cec6a58d993fb0b1beb5fac7ea0d1cb9769c0a4 (patch)
tree7822c065d054814fd1c44d1d2ef0159d535b446a /system/database/drivers/postgre/postgre_utility.php
parent4ceac2d4efa5a16486b6e97911bb32e261b9d648 (diff)
Diffstat (limited to 'system/database/drivers/postgre/postgre_utility.php')
-rw-r--r--system/database/drivers/postgre/postgre_utility.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/system/database/drivers/postgre/postgre_utility.php b/system/database/drivers/postgre/postgre_utility.php
index 7bb210ab7..8e51623be 100644
--- a/system/database/drivers/postgre/postgre_utility.php
+++ b/system/database/drivers/postgre/postgre_utility.php
@@ -28,13 +28,13 @@ class CI_DB_postgre_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;
}
// --------------------------------------------------------------------
@@ -84,7 +84,7 @@ class CI_DB_postgre_utility extends CI_DB_utility {
*/
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 @@ class CI_DB_postgre_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";
}