summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/postgre
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-02-11 00:47:13 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-02-11 00:47:13 +0100
commit41d4b592b9b0962e444938fcf106cccbbd8fda59 (patch)
treefcdfb11b1abf4de2a8a0699c5afebbe919c2ccdc /system/database/drivers/postgre
parent7555ade507982af16ed763e2e560a60892408bd2 (diff)
escape_table made consistent with mysql driver across all drivers
Diffstat (limited to 'system/database/drivers/postgre')
-rw-r--r--system/database/drivers/postgre/postgre_driver.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/postgre/postgre_driver.php b/system/database/drivers/postgre/postgre_driver.php
index a32c37ed8..2472c5e92 100644
--- a/system/database/drivers/postgre/postgre_driver.php
+++ b/system/database/drivers/postgre/postgre_driver.php
@@ -406,9 +406,9 @@ class CI_DB_postgre_driver extends CI_DB {
*/
function _escape_table($table)
{
- if (stristr($table, '.'))
+ if (strpos($table, '.') !== FALSE)
{
- $table = '"'.preg_replace("/\./", '"."', $table).'"';
+ $table = str_replace('.', '`.`', $table);
}
return $table;