From e8af2247e965e31026525f9c7392a384a31e7deb Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Fri, 20 Aug 2004 12:46:40 +0000 Subject: [PATCH] fix $mLastResult, affectedRows() --- includes/DatabasePostgreSQL.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/DatabasePostgreSQL.php b/includes/DatabasePostgreSQL.php index 09100c7955..1cef1f2ee0 100644 --- a/includes/DatabasePostgreSQL.php +++ b/includes/DatabasePostgreSQL.php @@ -18,6 +18,7 @@ require_once( "Database.php" ); class DatabasePgsql extends Database { var $mInsertId = NULL; + var $mLastResult = NULL; function DatabasePgsql($server = false, $user = false, $password = false, $dbName = false, $failFunction = false, $flags = 0, $tablePrefix = 'get from global' ) @@ -75,7 +76,7 @@ class DatabasePgsql extends Database { } function doQuery( $sql ) { - return pg_query( $this->mConn , $sql); + return $this->mLastResult=pg_query( $this->mConn , $sql); } function queryIgnore( $sql, $fname = "" ) { -- 2.20.1