Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Set affected_rows for queries
givanz909f5a5299c3
diff --git a/system/db/pgsql.php b/system/db/pgsql.phpindex bdc5bb3..e8856d4 100755--- a/system/db/pgsql.php+++ b/system/db/pgsql.php@@ -201,6 +201,10 @@ class Pgsql extends DBDriver {throw new \Exception($errorMessage);}+ if ($result) {+ $this->affected_rows = @pg_affected_rows($this->last_res);+ }+return $this->last_res;} catch (\Exception $e) {$message = $e->getMessage() . "\n$sql\n";@@ -297,6 +301,10 @@ class Pgsql extends DBDriver {//$this->last_res = pg_get_result(self :: $link);}+ if ($this->last_res) {+ $this->affected_rows = @pg_affected_rows($this->last_res);+ }+if ($this->last_res == false) {error_log('pgsql error: ' . pg_result_error($this->last_res) . pg_last_error(self :: $link));error_log($this->debugSql($origSql, $params, $paramTypes));