diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-02-12 21:30:14 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-02-12 21:30:14 +0100 |
commit | 2854724143db31f3bb0821c168314de51480bd43 (patch) | |
tree | 6e72166d557d747f7ef1d710b73f815b52e5a8a4 /system/database/drivers | |
parent | a64c61a77b0e1fb23d2063d4f54fef64c93e7e36 (diff) |
Use protect_identifiers() instead of _escape_identifiers() in CI_DB_postgre_forge
Diffstat (limited to 'system/database/drivers')
-rw-r--r-- | system/database/drivers/postgre/postgre_forge.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/postgre/postgre_forge.php b/system/database/drivers/postgre/postgre_forge.php index f9c79bf29..6030adf38 100644 --- a/system/database/drivers/postgre/postgre_forge.php +++ b/system/database/drivers/postgre/postgre_forge.php @@ -172,7 +172,7 @@ class CI_DB_postgre_forge extends CI_DB_forge { } } - $sql .= $this->db->_escape_identifiers($table).' ('.$this->_process_fields($fields, $primary_keys); + $sql .= $this->db->protect_identifiers($table).' ('.$this->_process_fields($fields, $primary_keys); if (count($primary_keys) > 0) { @@ -220,7 +220,7 @@ class CI_DB_postgre_forge extends CI_DB_forge { */ public function _drop_table($table) { - return 'DROP TABLE IF EXISTS '.$this->db->_escape_identifiers($table).' CASCADE'; + return 'DROP TABLE IF EXISTS '.$this->db->protect_identifiers($table).' CASCADE'; } // -------------------------------------------------------------------- |