summaryrefslogtreecommitdiffstats
path: root/system/drivers/DB_postgre.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/drivers/DB_postgre.php')
-rw-r--r--system/drivers/DB_postgre.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/system/drivers/DB_postgre.php b/system/drivers/DB_postgre.php
index cf59f0fdc..fd98ec78b 100644
--- a/system/drivers/DB_postgre.php
+++ b/system/drivers/DB_postgre.php
@@ -211,7 +211,8 @@ class CI_DB_postgre extends CI_DB {
* Escape Table Name
*
* This function adds backticks if the table name has a period
- * in it. Some DBs will get cranky unless periods are escaped
+ * in it. Some DBs will get cranky unless periods are escaped.
+ * NOT NEEDED FOR POSTGRE
*
* @access public
* @param string the table name
@@ -219,10 +220,12 @@ class CI_DB_postgre extends CI_DB {
*/
function escape_table($table)
{
+ /*
if (stristr($table, '.'))
{
- $table = preg_replace("/\./", ".", $table);
+ $table = preg_replace("/\./", "`.`", $table);
}
+ */
return $table;
}