From 25ec40600cf78881599c0c328161ddd3e35fc4ca Mon Sep 17 00:00:00 2001 From: "renan.saddam" Date: Thu, 30 Oct 2008 11:54:43 +0000 Subject: [PATCH] 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 --- cake/libs/model/datasources/dbo/dbo_postgres.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/model/datasources/dbo/dbo_postgres.php b/cake/libs/model/datasources/dbo/dbo_postgres.php index fadbe572d..5bf460d12 100644 --- a/cake/libs/model/datasources/dbo/dbo_postgres.php +++ b/cake/libs/model/datasources/dbo/dbo_postgres.php @@ -295,7 +295,7 @@ class DboPostgres extends DboSource { return (!empty($data) ? 'TRUE' : 'FALSE'); break; default: - $data = pg_escape_string($this->connection, $data); + $data = pg_escape_string($data); break; } return "'" . $data . "'";