From f2f0dc78929228619f8644d6553a02a8d1572242 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 16 Feb 2006 10:26:52 +0000 Subject: - only minor adjustements (we are now able to use other functions due to the increased php requirements) git-svn-id: file:///svn/phpbb/trunk@5557 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/db/postgres.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'phpBB/includes/db/postgres.php') diff --git a/phpBB/includes/db/postgres.php b/phpBB/includes/db/postgres.php index f371202578..e9d324e161 100644 --- a/phpBB/includes/db/postgres.php +++ b/phpBB/includes/db/postgres.php @@ -235,7 +235,7 @@ class dbal_postgres extends dbal return $cache->sql_fetchrow($query_id); } - return ($query_id) ? @pg_fetch_array($query_id, NULL, PGSQL_ASSOC) : false; + return ($query_id) ? @pg_fetch_assoc($query_id, NULL) : false; } /** @@ -295,7 +295,7 @@ class dbal_postgres extends dbal return false; } - $temp_result = @pg_fetch_array($temp_q_id, NULL, PGSQL_ASSOC); + $temp_result = @pg_fetch_assoc($temp_q_id, NULL); @pg_freeresult($query_id); return ($temp_result) ? $temp_result['last_value'] : false; @@ -328,7 +328,7 @@ class dbal_postgres extends dbal function sql_escape($msg) { // Do not use for bytea values - return pg_escape_string($msg); + return @pg_escape_string($msg); } /** @@ -338,7 +338,7 @@ class dbal_postgres extends dbal function _sql_error() { return array( - 'message' => @pg_errormessage(), + 'message' => (!$this->db_connect_id) ? @pg_last_error() : @pg_last_error($this->db_connect_id), 'code' => '' ); } @@ -368,7 +368,7 @@ class dbal_postgres extends dbal $endtime = $endtime[0] + $endtime[1]; $result = @pg_exec($this->db_connect_id, $query); - while ($void = @pg_fetch_array($result, NULL, PGSQL_ASSOC)) + while ($void = @pg_fetch_assoc($result, NULL)) { // Take the time spent on parsing rows into account } -- cgit v1.2.1