Reverting previous commit - pg_escape_string($connection, $data) is PHP5-only.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7803 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
renan.saddam 2008-10-30 11:54:43 +00:00
parent 40bf675589
commit 25ec40600c

View file

@ -295,7 +295,7 @@ class DboPostgres extends DboSource {
return (!empty($data) ? 'TRUE' : 'FALSE'); return (!empty($data) ? 'TRUE' : 'FALSE');
break; break;
default: default:
$data = pg_escape_string($this->connection, $data); $data = pg_escape_string($data);
break; break;
} }
return "'" . $data . "'"; return "'" . $data . "'";