diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-01-26 20:33:59 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-01-26 20:33:59 +0100 |
commit | 4acd792e54f58a5d86269057b5a827440fc2efcd (patch) | |
tree | 9d13fd49c1c4f3f5576782e502cdc446c2aed34e /system/database/drivers/postgre/postgre_driver.php | |
parent | 74df78c35d75519241edcf25da2079e11183f1d0 (diff) |
fix a postgre escape error
Diffstat (limited to 'system/database/drivers/postgre/postgre_driver.php')
-rw-r--r-- | system/database/drivers/postgre/postgre_driver.php | 4 |
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 34d76de61..96cf2dfe9 100644 --- a/system/database/drivers/postgre/postgre_driver.php +++ b/system/database/drivers/postgre/postgre_driver.php @@ -451,7 +451,7 @@ class CI_DB_postgre_driver extends CI_DB { }
else
{
- return ""{$item}"";
+ return "\"{$item}\"";
}
$exceptions = array('AS', '/', '-', '%', '+', '*');
@@ -459,7 +459,7 @@ class CI_DB_postgre_driver extends CI_DB { foreach ($exceptions as $exception)
{
- if (stristr($item, " "{$exception}" ") !== FALSE)
+ if (stristr($item, " \"{$exception}\" ") !== FALSE)
{
$item = preg_replace('/ "('.preg_quote($exception).')" /i', ' $1 ', $item);
}
|