diff options
author | Greg Aker <greg@gregaker.net> | 2011-12-25 08:44:33 +0100 |
---|---|---|
committer | Greg Aker <greg@gregaker.net> | 2011-12-25 08:44:33 +0100 |
commit | ef38f0a6d83025fbd99ace5ec60311acfe9121c4 (patch) | |
tree | 1728bc5df9412d8eccc2919bf3cd3f6bbe6a52d0 /system/database/drivers/postgre | |
parent | d90e1a0fb541ee94459a20cf8b0726aebaec9692 (diff) | |
parent | a96ade374f28cdae97036fc253fd8b2a0e8dc81a (diff) |
Merge branch 'develop' into feature/unit-tests
Diffstat (limited to 'system/database/drivers/postgre')
-rw-r--r-- | system/database/drivers/postgre/postgre_forge.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/system/database/drivers/postgre/postgre_forge.php b/system/database/drivers/postgre/postgre_forge.php index 166cc4e6a..f86ba2dda 100644 --- a/system/database/drivers/postgre/postgre_forge.php +++ b/system/database/drivers/postgre/postgre_forge.php @@ -81,9 +81,10 @@ class CI_DB_postgre_forge extends CI_DB_forge { if ($if_not_exists === TRUE) { + // PostgreSQL doesn't support IF NOT EXISTS syntax so we check if table exists manually if ($this->db->table_exists($table)) { - return "SELECT * FROM $table"; // Needs to return innocous but valid SQL statement + return TRUE; } } @@ -224,9 +225,6 @@ class CI_DB_postgre_forge extends CI_DB_forge { /** * Drop Table - * - * @access private - * @return bool */ function _drop_table($table) { |