summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/postgre/postgre_driver.php
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-02-11 06:54:44 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-02-11 06:54:44 +0100
commitc0743381b20910a3fc23b391e8b2009ac5771ae8 (patch)
treed456d728a363a11f3b634a128fcbf5fb61331d64 /system/database/drivers/postgre/postgre_driver.php
parent70529a739dd0a73fc72124720390313d8a8b0dca (diff)
database enhancements, compatibility additions and bugfixes
Diffstat (limited to 'system/database/drivers/postgre/postgre_driver.php')
-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..ce8cb258a 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;